Re: [SQL] exporting query result

Поиск
Список
Период
Сортировка
Искать
От
Thomas Kellerer
Тема
Re: [SQL] exporting query result
Дата
в 19:21:08
Msg-id
of4ndf$6n3$1@blaine.gmane.org
Ответ на
Список
Дерево обсуждения
[SQL] exporting query result Günce Kaya <guncekaya14@gmail.com>
Re: [SQL] exporting query result Adrian Klaver <adrian.klaver@aklaver.com>
Re: [SQL] exporting query result Günce Kaya <guncekaya14@gmail.com>
Re: [SQL] exporting query result Adrian Klaver <adrian.klaver@aklaver.com>
Re: [SQL] exporting query result Günce Kaya <guncekaya14@gmail.com>
Re: [SQL] exporting query result Thomas Kellerer <spam_eater@gmx.net>
Re: [SQL] exporting query result Günce Kaya <guncekaya14@gmail.com>
Günce Kaya schrieb am 12.05.2017 um 17:58:
> Thank you for your advice. But I did not want to ask about using
> Copy. I always use it but my requirement  is if there is anyway to
> export query result to CSV's different sheets.

A  CSV file has no sheets (it does not even have a "structure" as it is plain text).

The tool I am maintaining can do you what you want (or at least what I think you want):

It has a built-in command to export data to various formats including ODS or XLSX which you need in order to create multiple "sheets"

The following command
  WbExport -file=data.xlsx -sourceTable=table_one,table_two, table_three;

Creates a single XLSX file with three sheets, one for each table.

You can download it here: http://www.sql-workbench.net/

For details on the WbExport command see here: http://www.sql-workbench.net/manual/command-export.html

Disclosure: I am the author of that tool.

Regards
Thomas 



В списке pgsql-sql по дате отправления
От: Günce Kaya
Дата:
От: Günce Kaya
Дата:
FAQ