Re: START for SERIAL type? - Mailing list pgsql-sql

From Vivek Khera
Subject Re: START for SERIAL type?
Date
Msg-id x7ae3wj5ts.fsf@onceler.kciLink.com
Whole thread Raw
In response to START for SERIAL type?  (jferry@iexposure.com)
List 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 by date:

Previous
From: "Diehl, Jeffrey"
Date:
Subject: Upgd from 7.0 to 7.1
Next
From: "Diehl, Jeffrey"
Date:
Subject: RE: Upgd from 7.0 to 7.1