serial data type

Поиск
Список
Период
Сортировка
От postgresql
Тема serial data type
Дата
Msg-id 200110270135.f9R1ZmP66919@postgresql.org
обсуждение исходный текст
Ответы Re: serial data type  (David Stanaway <david@netventures.com.au>)
Список pgsql-sql
CREATE TABLE tablename (colname SERIAL);

okay, but how do I set the beginning number. So far the only thing I 
have been able to do is directly after creating the serial column, I do:

select setval('tablename_colname_seq', 15753);

Is this the only way to set the beginning number of a sequence? 

Thanks for all your help guys,

Ted Petrosky
tedpet@symcom.com




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

Предыдущее
От: "Dmitry G. Mastrukov" Дмитрий Геннадьевич Мастрюков
Дата:
Сообщение: Re: GUID in postgres
Следующее
От: David Stanaway
Дата:
Сообщение: Re: serial data type