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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -