Re: Auto incrementing fields. How? - Mailing list pgsql-general

From Dan Wilson
Subject Re: Auto incrementing fields. How?
Date
Msg-id 006801c069da$6f8d4490$078353d8@danwilson
Whole thread Raw
In response to Auto incrementing fields. How?  (Harry Wood <harry.wood@ic.ac.uk>)
List pgsql-general
Use the column type of SERIAL in your create table statement.  This will
automatically create a sequence and default for the given column.

http://www.postgresql.org/users-lounge/docs/7.0/user/sql-createsequence.htm
for more on sequences.


----- Original Message -----
From: "Harry Wood" <harry.wood@ic.ac.uk>
To: <pgsql-general@postgresql.org>
Sent: Tuesday, December 19, 2000 6:51 AM
Subject: [GENERAL] Auto incrementing fields. How?


> Anyone know how to create auto incrementing fields?
>
> --
> Harry
> harry.wood@ic.ac.uk
> http://www.doc.ic.ac.uk/~hw97/Nojer2
> Nojer2 on chat.yahoo.com and zapidonia.com
> ICQ number 18519769


pgsql-general by date:

Previous
From: "Dan Wilson"
Date:
Subject: Re: newbie question:
Next
From: "Brett W. McCoy"
Date:
Subject: Re: Auto incrementing fields. How?