From: Vivek Khera <khera@kcilink.com>
To: pgsql-sql@postgresql.org
Subject: Re: START for SERIAL type?
Date: 29 May 2001 15:47:11 -0400
Message-ID: <x7ae3wj5ts.fsf@onceler.kciLink.com> (raw)
References: <3B11975D.2BBC3350@iexposure.com>
>>>>> "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/
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: khera@kcilink.com
Subject: Re: START for SERIAL type?
In-Reply-To: <x7ae3wj5ts.fsf@onceler.kciLink.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox