Re: About auto_increment - Mailing list pgsql-general

From Richard Huxton
Subject Re: About auto_increment
Date
Msg-id 459A801B.3020109@archonet.com
Whole thread Raw
In response to About auto_increment  (Yesh <rengesh2k3@yahoo.co.in>)
Responses Re: About auto_increment  (Yesh <rengesh2k3@yahoo.co.in>)
List pgsql-general
Yesh wrote:
> Hi,
>
>   I need to know how to increment a primary key field automatically in run
> time.

Not sure precisely what you want to know, but read up on the SERIAL
type, sequences, nextval() and currval().

--
   Richard Huxton
   Archonet Ltd

pgsql-general by date:

Previous
From: Dennis
Date:
Subject: Re: Geographical redundancy
Next
From: "Raymond O'Donnell"
Date:
Subject: Re: About auto_increment