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