\COPY from CSV ERROR: unterminated CSV quoted field

Поиск
Список
Период
Сортировка
От ogromm
Тема \COPY from CSV ERROR: unterminated CSV quoted field
Дата
Msg-id 1403082002427-5807700.post@n5.nabble.com
обсуждение исходный текст
Ответы Re: \COPY from CSV ERROR: unterminated CSV quoted field
Список pgsql-general
Hi,

I get the error "unterminated CSV quoted field" when I try to copy text with
"new line \. new line"


For example:

CREATE TABLE test (text TEXT);
\COPY test FROM 'test.csv' WITH DELIMITER ',' CSV HEADER;

test.csv:
Text
"some text
\.
more text"


Can any one please give me some clue how to get rid of this problem.

Thanks in advance.

ogromm



--
View this message in context:
http://postgresql.1045698.n5.nabble.com/COPY-from-CSV-ERROR-unterminated-CSV-quoted-field-tp5807700.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


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

Предыдущее
От: John R Pierce
Дата:
Сообщение: Re: Best backup strategy for production systems
Следующее
От: "Vasudevan, Ramya"
Дата:
Сообщение: Re: max_connections reached in postgres 9.3.3