Re: About auto_increment

From: Richard Huxton <dev(at)archonet(dot)com>
To: Yesh <rengesh2k3(at)yahoo(dot)co(dot)in>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: About auto_increment
Date: 2007-01-02 15:54:03
Message-ID: 459A801B.3020109@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2007-01-02 15:54:08 Re: About auto_increment
Previous Message kenp 2007-01-02 14:58:54 Schema and Function names