Re: How to export query results to excel file using psql command in postgresql

Поиск
Список
Период
Сортировка
От Paul Förster
Тема Re: How to export query results to excel file using psql command in postgresql
Дата
Msg-id DB4C59C6-9FF6-48F9-B82E-12316D8E9B2B@gmail.com
обсуждение исходный текст
Ответ на How to export query results to excel file using psql command in postgresql  (Naveen Kumar <naveenmcp@gmail.com>)
Список pgsql-general
Hi Naveen,

> On 13. Aug, 2020, at 16:10, Naveen Kumar <naveenmcp@gmail.com> 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


В списке pgsql-general по дате отправления:

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: How to export query results to excel file using psql command in postgresql
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: How to export query results to excel file using psql command in postgresql