copy from ignores \,

Поиск
Список
Период
Сортировка
От Bauhofer Mario
Тема copy from ignores \,
Дата
Msg-id E1E65IC-0003Ju-DX@smartmx-02.inode.at
обсуждение исходный текст
Ответы Re: copy from ignores \,  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general

Hi,

 

i tried to copy a german text  file  into a table “imp” using copy from.

 

 

SET client_encoding TO LATIN1; -- german umlaute

Copy imp from ‘filepath/filename.txt’ delimiter as ‘,’ Null as ‘\n’;

 

As you can see the “text” contains commas escaped by a backslash.

 

But copy from ignores the \, an treat them as a  separator

 

Is this correct ?

 

Do I miss something.

 

Thx for the help!

 

Create table imp(

Id smallint,

numberx int4,

Text varchar(255)

)

 

…..

458,9009009,sometext1\,sometext2\,sometext3

……

 

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

Предыдущее
От: dknoto@wiml.waw.pl
Дата:
Сообщение: How disable context view in RAISE
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: copy from ignores \,