Re: START for SERIAL type?

Поиск
Список
Период
Сортировка
От Vivek Khera
Тема Re: START for SERIAL type?
Дата
Msg-id x7ae3wj5ts.fsf@onceler.kciLink.com
обсуждение исходный текст
Ответ на START for SERIAL type?  (jferry@iexposure.com)
Список pgsql-sql
>>>>> "j" == jferry  <jferry@iexposure.com> writes:

j> When you create a SEQUENCE, you are allowed to specify a START.  Is
j> there a way to specify a START if you use a serial type in a CREATE
j> TABLE statement?

No.  You do it after you create the table.  The SERIAL type creates a
sequence, so just use the sequence command setval() to set the
starting value for the named sequence.


-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Vivek Khera, Ph.D.                Khera Communications, Inc.
Internet: khera@kciLink.com       Rockville, MD       +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera   http://www.khera.org/~vivek/


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

Предыдущее
От: "Diehl, Jeffrey"
Дата:
Сообщение: Upgd from 7.0 to 7.1
Следующее
От: "Diehl, Jeffrey"
Дата:
Сообщение: RE: Upgd from 7.0 to 7.1