\copy multiline

Поиск
Список
Период
Сортировка
От Seb
Тема \copy multiline
Дата
Msg-id 87r4ndnlfn.fsf@kolob.subpolar.dyndns.org
обсуждение исходный текст
Ответы Re: \copy multiline  (Guillaume Lelarge <guillaume@lelarge.info>)
Список pgsql-sql
Hi,

I use \copy to output tables into CSV files:

\copy (SELECT ...) TO 'a.csv' CSV

but for long and complex SELECT statements, it is cumbersome and
confusing to write everything in a single line, and multiline statements
don't seem to be accepted.  Is there an alternative, or am I missing an
continuation-character/option/variable that would allow multiline
statements in this case?

Cheers,

-- 
Seb



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

Предыдущее
От: "David Johnston"
Дата:
Сообщение: Re: Joining several rows into only one
Следующее
От: Guillaume Lelarge
Дата:
Сообщение: Re: \copy multiline