From: | Joe Barrero <jbarrero(at)SweepsClub(dot)com> |
---|---|
To: | pgsql-sql(at)postgresql(dot)org |
Subject: | Re: Auto Increment |
Date: | 2001-10-23 17:24:52 |
Message-ID: | 4F07A1CC8DDE404CB6B84C5DE431F6E601CAFC@exchange1.Sweepsclub.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
create table mytable (
myfield serial primary key,
myotherfield integer);
Using the SERIAL data type automatically creates the sequence and default
statements for you.
-----Original Message-----
From: Mayuresh Kadu [mailto:mayureshk(at)aftek(dot)com]
Sent: Monday, October 22, 2001 2:36 AM
To: pgsql-sql(at)postgresql(dot)org
Subject: [SQL] Auto Increment
hi all,
could anyone tell me how to make a primary key to AUTO INCREMENT. The
document is not exactly very explainatory about it :)
Thankx in advance ...
Mayuresh
---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
message can get through to the mailing list cleanly
From | Date | Subject | |
---|---|---|---|
Next Message | Josh Berkus | 2001-10-23 18:33:54 | Re: can't update 'c:\windows' |
Previous Message | Aasmund Midttun Godal | 2001-10-23 17:08:08 | Error codes as numbers or in other languages etc. |