copy into serial field with auto_increment

Поиск
Список
Период
Сортировка
От Andy
Тема copy into serial field with auto_increment
Дата
Msg-id 3ADD6996.B4D2CCEA@infosys.de
обсуждение исходный текст
Ответы Re: copy into serial field with auto_increment  ("Oliver Elphick" <olly@lfix.co.uk>)
Список pgsql-sql
Hello,

i've got a textfile of data separated by '|'. One of the fields in my
table is a serial (auto_increment) field.
When i import the data with the copy command i get duplicate key error.
The key is the serial - field.
I recognized that the copy command doesn't auto_increment the serial
field. I come from mysql and pushed a 0 into the serial field. But it
doesn't work. I tested it with an empty field, but it failed to.
How could i make it work ??

Thanx for every help

--
Andy - Kim Möller
Leiter Lastminute / Pauschal - Deutschland ypsilon.net AG
Leiter Entwicklungsabteilung Lastminute / Pauschal / Mietwagen -
Deutschland ypsilon.net AG

Tel.: (06109) - 50 50
FAX : (06109) - 50 525
eMail : amoeller@infosys.de


Вложения

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

Предыдущее
От: Mateusz Mazur
Дата:
Сообщение: Postgres book
Следующее
От: Lamar Owen
Дата:
Сообщение: Re: [GENERAL] Where are the 7.1 RPM's?