pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedSTART for SERIAL type?
3+ messages / 3 participants
[nested] [flat]
* START for SERIAL type?
@ 2001-05-28 00:10 jferry@iexposure.com
2001-05-29 19:47 ` Re: START for SERIAL type? Vivek Khera <khera@kcilink.com>
2001-05-30 21:23 ` Re: START for SERIAL type? Frank Contrepois <sokak@tin.it>
0 siblings, 2 replies; 3+ messages in thread
From: jferry@iexposure.com @ 2001-05-28 00:10 UTC (permalink / raw)
To: pgsql-sql
When you create a SEQUENCE, you are allowed to specify a START. Is
there a way to specify a START if you use a serial type in a CREATE
TABLE statement?
I'm envisioning something like:
CREATE TABLE foo ( foo_id serial ( 101 ) );
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: START for SERIAL type?
2001-05-28 00:10 START for SERIAL type? jferry@iexposure.com
@ 2001-05-29 19:47 ` Vivek Khera <khera@kcilink.com>
1 sibling, 0 replies; 3+ messages in thread
From: Vivek Khera @ 2001-05-29 19:47 UTC (permalink / raw)
To: 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/
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: START for SERIAL type?
2001-05-28 00:10 START for SERIAL type? jferry@iexposure.com
@ 2001-05-30 21:23 ` Frank Contrepois <sokak@tin.it>
1 sibling, 0 replies; 3+ messages in thread
From: Frank Contrepois @ 2001-05-30 21:23 UTC (permalink / raw)
To: pgsql-sql
read the doc section datatype!!!
serial just create a sequence on a standard way, if you dont like it you'll
have to create your sequence.
bye
--
--
"L'idea di base è estremamente semplice..."
©opyright Frank "Pazzooo" Contrepois (schiavista francese del '900)
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2001-05-30 21:23 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-05-28 00:10 START for SERIAL type? jferry@iexposure.com
2001-05-29 19:47 ` Vivek Khera <khera@kcilink.com>
2001-05-30 21:23 ` Frank Contrepois <sokak@tin.it>
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