On 8/13/20 7:10 AM, Naveen Kumar wrote:
How to export query results to excel file using psql command in postgresql

You can't. You can export to CSV that you could then import into Excel.

See:

https://www.postgresql.org/docs/12/app-psql.html

\copy


--
Adrian Klaver
adrian.kla...@aklaver.com


Reply via email to