Hi Naveen, > On 13. Aug, 2020, at 16:10, Naveen Kumar <naveenmcp@xxxxxxxxx> wrote: > > How to export query results to excel file using psql command in postgresql use the "copy" command along with its CSV output setting. Then open the CSV file with Excel. Look here: https://www.postgresqltutorial.com/export-postgresql-table-to-csv-file/ https://www.postgresql.org/docs/current/sql-copy.html Cheers, Paul