pg import text data to not null table comma error but semicolon right

Поиск
Список
Период
Сортировка
От 王学敏
Тема pg import text data to not null table comma error but semicolon right
Дата
Msg-id 21c10616.195a8.146d82287df.Coremail.wang1352083@163.com
обсуждение исходный текст
Ответы Re: pg import text data to not null table comma error but semicolon right  (David G Johnston <david.g.johnston@gmail.com>)
Re: pg import text data to not null table comma error but semicolon right  (Matheus de Oliveira <matioli.matheus@gmail.com>)
Список pgsql-bugs
Hi,
when i imort data from csv to table ,there may be some error
create table t(d1 text not null,d2 text not null,d3 text not null);

 \copy t(d1,d2,d3) from 'comma.text' with  delimiter ',';              
ERROR:  missing data for column "d2"
CONTEXT:  COPY t, line 1: "a;b;c"

 \copy t(d1,d2,d3) from 'semicolon.text' with  delimiter ';' ;
--no error
cat comma.text
a,b,c
e,,f

cat semicolon.text
a;b;c
e;;f





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

Предыдущее
От: Devrim Gündüz
Дата:
Сообщение: Re: BUG #10297: yum - transaction check error
Следующее
От: David G Johnston
Дата:
Сообщение: Re: pg import text data to not null table comma error but semicolon right