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