Copy and serial type problem

Поиск
Список
Период
Сортировка
От Przemyslaw 'Morp][ik' Berlinski
Тема Copy and serial type problem
Дата
Msg-id 9jf8om$4gt$1@news.tpi.pl
обсуждение исходный текст
Список pgsql-general
Hi,

I've created a small table:

CREATE TABLE "table" (
  "id" int4 DEFAULT nextval('"table_idd_seq"') NOT NULL,
  "file" character varying(40) NOT NULL
);

Table sequence 'table_idd_seq' is also available with a next id number.

Question is how to use postgres copy function with this 'id'. Table 'table'
is not empty... I've tried to insert nextval("table_idd_seq") into file but
it doesn't work.

Any help would be appreciated.

TIA
Morp][ik




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

Предыдущее
От: Nils Zonneveld
Дата:
Сообщение: Re: Questions about rollback and commit
Следующее
От: ajmayo@my-deja.com (Andrew Mayo)
Дата:
Сообщение: Re: Postgresql revisited. Some questions about the product