Copy records from postgresql to csv file

COPY(QUERY) TO 'FILENAME' WITH CSV HEADER;

For the other way around see: Copy records from csv file to postgres DB

Comments

Comments powered by Disqus