Search Postgresql Archives

Re: exporting quoted CSV data from a query

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, May 08, 2006 at 12:26:48PM -0700, George Pavlov wrote:
> Is there a way to export the output of an arbitrary SQL query to a
> quoted CSV file? 

For now, you can do it with a temp table, as in:

BEGIN;
CREATE TEMP TABLE my_temp AS SELECT ...;
COPY my_temp ... ;
ROLLBACK;

HTH :)

Cheers,
D
-- 
David Fetter <david@xxxxxxxxxx> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux