why Postgresql COPY command not working using c? -
i trying load data stored in .csv file postgres database using c on ubuntu. using 'copy' command load data as,
conn = pqconnectdb("dbname=ravidb host=localhost user=ravi password=pwd"); char *loaddata ="copy loadcsv 'my_path/test.txt' delimiter ',' csv;"; pqexec(conn, loaddata);
before executing above command have created empty table 'loadcsv', required file not getting copied database. stuck here. have same???
Comments
Post a Comment