From: | Stephen Tahmosh <stahmosh(at)shieldsrx(dot)com> |
---|---|
To: | "Ferrell, Denise D CTR NSWCDD, H11" <denise(dot)ferrell(dot)ctr(at)navy(dot)mil>, "pgsql-admin(at)postgresql(dot)org" <pgsql-admin(at)postgresql(dot)org> |
Subject: | Re: Extracting data into .csv format |
Date: | 2016-02-17 16:55:00 |
Message-ID: | DM2PR0701MB12954BB11136BB39A3403A19C4AE0@DM2PR0701MB1295.namprd07.prod.outlook.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
The "Copy" statement (and \copy for local access
COPY (
select * from (.........
) TO ' || '''' || filname || '''' || ' with csv header'
STeve
-----Original Message-----
From: pgsql-admin-owner(at)postgresql(dot)org [mailto:pgsql-admin-owner(at)postgresql(dot)org] On Behalf Of Ferrell, Denise D CTR NSWCDD, H11
Sent: Wednesday, February 17, 2016 11:49 AM
To: pgsql-admin(at)postgresql(dot)org
Subject: [ADMIN] Extracting data into .csv format
Using PostgreSQL 9.3 on Linux
I'm trying to extract data into a comma delimited format and not having much success...seems to act totally different from Oracle. Does anyone have any suggestions?
Thank you in advance.
Denise
THIS MESSAGE (AND ALL ATTACHMENTS) IS INTENDED FOR THE USE OF THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW. If you are not the intended recipient, your use of this message for any purpose is strictly prohibited. If you have received this communication in error, please delete the message without making any copies and notify the sender so that we may correct our records. Thank you.
From | Date | Subject | |
---|---|---|---|
Next Message | David G. Johnston | 2016-02-17 16:55:25 | Re: Extracting data into .csv format |
Previous Message | Vivekanand Joshi | 2016-02-17 16:54:53 | Re: Extracting data into .csv format |