Re: Auto incrementing an integer - Mailing list pgsql-sql

From Thomas Swan
Subject Re: Auto incrementing an integer
Date
Msg-id 3B004DC6.70301@olemiss.edu
Whole thread Raw
In response to Auto incrementing an integer  ("Sylte" <Sylte_@hotmail.com>)
List pgsql-sql
Sylte wrote:

>How do I construct a datatype that autoincrement in postgreSQL?
>
Use the SERIAL data type instead of an INT4.    Serial is an integer 
(INT4) that's default value is base on a sequence.

for example...

create table foo (  my_id serial not null,  my_data text
);





pgsql-sql by date:

Previous
From: Per-Olof Pettersson
Date:
Subject: Re: How NULL is interpreted in Pgsql
Next
From: Chris Ryan
Date:
Subject: [Fwd: [Gborg-bugs] BUG: reference error when using inherited tables (ID: 269) (new)]