Re: How to import CSV file?

Поиск
Список
Период
Сортировка
От Jeff Frost
Тема Re: How to import CSV file?
Дата
Msg-id Pine.LNX.4.64.0708281109470.31586@discord.home.frostconsultingllc.com
обсуждение исходный текст
Ответ на Re: How to import CSV file?  ("Chris Hoover" <revoohc@gmail.com>)
Ответы Re: How to import CSV file?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-admin
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.

Check out the docs here:

http://www.postgresql.org/docs/8.1/interactive/sql-copy.html

Probably you want to try something like:

COPY foo FROM '/tmp/foo' WITH CSV QUOTE AS '\'';

--
Jeff Frost, Owner     <jeff@frostconsultingllc.com>
Frost Consulting, LLC     http://www.frostconsultingllc.com/
Phone: 650-780-7908    FAX: 650-649-1954

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: How to monitor resources on Linux.
Следующее
От: KL
Дата:
Сообщение: pg_dump object dump-order