Re: How to export query results to excel file using psql command in postgresql - Mailing list pgsql-general

From Adrian Klaver
Subject Re: How to export query results to excel file using psql command in postgresql
Date
Msg-id 6d4ea5f4-309f-64d4-eb2c-daa7ac25ab19@aklaver.com
Whole thread Raw
In response to How to export query results to excel file using psql command in postgresql  (Naveen Kumar <naveenmcp@gmail.com>)
List pgsql-general
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.klaver@aklaver.com



pgsql-general by date:

Previous
From: Paul Förster
Date:
Subject: Re: How to export query results to excel file using psql command in postgresql
Next
From: "David G. Johnston"
Date:
Subject: Re: Bytea Example