Re: START for SERIAL type?

From: Vivek Khera <khera(at)kcilink(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: START for SERIAL type?
Date: 2001-05-29 19:47:11
Message-ID: x7ae3wj5ts.fsf@onceler.kciLink.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

>>>>> "j" == jferry <jferry(at)iexposure(dot)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(at)kciLink(dot)com Rockville, MD +1-240-453-8497
AIM: vivekkhera Y!: vivek_khera http://www.khera.org/~vivek/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Diehl, Jeffrey 2001-05-29 19:57:58 RE: Upgd from 7.0 to 7.1
Previous Message Diehl, Jeffrey 2001-05-29 19:22:50 Upgd from 7.0 to 7.1