Export a PostgreSQL Table to a CSV File

PHOTO EMBED

Fri Dec 04 2020 02:12:13 GMT+0000 (UTC)

Saved by @Campbell

\copy (SELECT * FROM persons) to 'C:\tmp\persons_client.csv' with csv
content_copyCOPY

https://www.postgresqltutorial.com/export-postgresql-table-to-csv-file/