Outputting CSV from Postgres
\f ','
\a
\t
\o /path/to/my.csv
SELECT field1,field2 FROM some_table;
\o
- Improve this page Edit on Github Help and instructions
-
Donate
If you have found this useful and would like to support our work please consider making a small donation.