agora inbox for pgsql-sql@postgresql.org
help / color / mirror / Atom feedFrom: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-sql@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Re: exporting query result
Date: Fri, 12 May 2017 18:21:08 +0200
Message-ID: <of4ndf$6n3$1@blaine.gmane.org> (raw)
In-Reply-To: <CAAV2-mV_JLu5rqchgbZUALqHj3YfWGDcU8VpkTcES_YuwinhRQ@mail.gmail.com>
References: <CAAV2-mWJfp9iqpDn8pA11ofGc4RgDVKbUAwuHhXo95j=ooMULg@mail.gmail.com>
<4498cd4b-95b7-c4f5-add4-b6555267296a@aklaver.com>
<CAAV2-mV_JLu5rqchgbZUALqHj3YfWGDcU8VpkTcES_YuwinhRQ@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-sql>
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
--
Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-sql
view thread (7+ messages) latest in thread
Message-ID: <of4ndf$6n3$1@blaine.gmane.org>
Permalink: ../of4ndf$6n3$1@blaine.gmane.org/
Also on: postgresql.org/message-id/of4ndf$6n3$1@blaine.gmane.org
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: spam_eater@gmx.net, pgsql-admin@postgresql.org
Subject: Re: exporting query result
In-Reply-To: <of4ndf$6n3$1@blaine.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox