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