Re: How to import CSV file?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How to import CSV file?
Дата
Msg-id 1966.1188329682@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: How to import CSV file?  (Jeff Frost <jeff@frostconsultingllc.com>)
Список pgsql-admin
Jeff Frost <jeff@frostconsultingllc.com> writes:
> On Tue, 28 Aug 2007, Chris Hoover wrote:
>> Why go through all of this when COPY can handle this for you?  All I need to
>> know is the syntax to tell copy that the strings are quoted by a single
>> quote.

> Probably you want to try something like:
> COPY foo FROM '/tmp/foo' WITH CSV QUOTE AS '\'';

Actually I'd recommend WITH CSV QUOTE AS '''' ... the backslash syntax
is nonstandard and will bite you eventually.  Doubled quote works in
every version of PG.

            regards, tom lane

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: How to monitor resources on Linux.
Следующее
От: John R Allgood
Дата:
Сообщение: Re: How to monitor resources on Linux.