[GENERAL] serial type

Поиск
Список
Период
Сортировка
От Greg Beams
Тема [GENERAL] serial type
Дата
Msg-id Pine.GSO.4.05.9909281439001.27261-100000@toaster.cs.mu.OZ.AU
обсуждение исходный текст
Список pgsql-general
I'm trying to create a table as such:

create table comment
(rec_id serial,
locale varchar(50),
...)

It creates correctly, telling me that it will create an implicit sequence
for the serial column, and an implicit index for the table.  But, when I
try to insert a record into the database (without specifying the value for
the rec_id column) I get the following error:

ERROR:  serial.nextval: sequence does not exist

Does anyone have any ideas (I'm not sure whether this belongs on this
list, or the pgsql-sql list)?

Thanks, Greg.

Greg Beams - gob@students.cs.mu.oz.au

I'M NOT OKAY, YOU'RE NOT OKAY--BUT, HEY, THAT'S OKAY.


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

Предыдущее
От: myers
Дата:
Сообщение: Re: [GENERAL] Solaris 7 x86 error
Следующее
От: greg@proterians.net
Дата:
Сообщение: Re: [GENERAL] backend crashing with INTERSECT / ORDER BY