pgadmin export query results to csv code example
Example: sql to excel pgadmin
COPY albums TO '/Users/dave/Downloads/albums.csv' DELIMITER ',' CSV HEADER;
COPY albums TO '/Users/dave/Downloads/albums.csv' DELIMITER ',' CSV HEADER;