Re: auto fill serial id field with default value in copy operation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: auto fill serial id field with default value in copy operation
Дата
Msg-id 29409.1287783071@sss.pgh.pa.us
обсуждение исходный текст
Ответ на auto fill serial id field with default value in copy operation  ("karsten vennemann" <karsten@terragis.net>)
Ответы Re: auto fill serial id field with default value in copy operation  ("karsten vennemann" <karsten@terragis.net>)
Список pgsql-general
"karsten vennemann" <karsten@terragis.net> writes:
> What is the best way to load my data via copy into the db and get the record_id field auto filled (with the next id
valuein squence) ? 

You have to omit the column from the copy data altogether, and then
list just the columns that are supplied in the data in the COPY command's
column list.

            regards, tom lane

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

Предыдущее
От: "karsten vennemann"
Дата:
Сообщение: auto fill serial id field with default value in copy operation
Следующее
От: Gary Chambers
Дата:
Сообщение: Re: Solaris install - "cannot compute sizeof (off_t)" error - readline issue?