pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedAUTOINCREMENT--help
2+ messages / 2 participants
[nested] [flat]
* AUTOINCREMENT--help
@ 2001-01-02 02:23 Macky <macky@edsamail.com>
0 siblings, 1 reply; 2+ messages in thread
From: Macky @ 2001-01-02 02:23 UTC (permalink / raw)
To: pgsql-sql
Is there a function in SQL that does autoincrementing...
eg.
CREATE TABLE (name varchar(40),num_id int);
wherein num_id starts with 0 and then when ever I INSERT another record
num_id goes 1 etc....
Thanks in advance............
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: AUTOINCREMENT--help
@ 2001-01-02 03:00 Brett W. McCoy <bmccoy@chapelperilous.net>
parent: Macky <macky@edsamail.com>
0 siblings, 0 replies; 2+ messages in thread
From: Brett W. McCoy @ 2001-01-02 03:00 UTC (permalink / raw)
To: Macky <macky@edsamail.com>; +Cc: pgsql-sql
On Tue, 2 Jan 2001, Macky wrote:
> Is there a function in SQL that does autoincrementing...
http://www.postgresql.org/docs/faq-english.html#4.16.1
and
http://www.postgresql.org/users-lounge/docs/7.0/postgres/sql-createsequence.htm
will tell you how to do this.
-- Brett
http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
A thing is not necessarily true because a man dies for it.
-- Oscar Wilde, "The Portrait of Mr. W.H."
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2001-01-02 03:00 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-02 02:23 AUTOINCREMENT--help Macky <macky@edsamail.com>
2001-01-02 03:00 ` Brett W. McCoy <bmccoy@chapelperilous.net>
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