PostgreSQL, SQL postgresql – export table to csv elvisyip2019-05-272023-05-11 COPY (SELECT * FROM "table_name") TO 'C:\Users\your_user_name\Desktop\test.csv' WITH CSV DELIMITER ',';