Re: exporting quoted CSV data from a query

Поиск
Список
Период
Сортировка
От David Fetter
Тема Re: exporting quoted CSV data from a query
Дата
Msg-id 20060509022159.GA2720@fetter.org
обсуждение исходный текст
Ответ на exporting quoted CSV data from a query  ("George Pavlov" <gpavlov@mynewplace.com>)
Список pgsql-general
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@fetter.org> http://fetter.org/
phone: +1 415 235 3778        AIM: dfetter666
                              Skype: davidfetter

Remember to vote!

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

Предыдущее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: What is your favorite front end for user interaction
Следующее
От: "N Srinivasa"
Дата:
Сообщение: how to debugg