Re: About auto_increment

From: Yesh <rengesh2k3(at)yahoo(dot)co(dot)in>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: About auto_increment
Date: 2007-01-03 03:54:05
Message-ID: 8135523.post@talk.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


Hi,

Thankx guys I am now able to increment that field by using serial.

Richard Huxton wrote:
>
> 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
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: 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
>
>

--
View this message in context: http://www.nabble.com/About-auto_increment-tf2906530.html#a8135523
Sent from the PostgreSQL - general mailing list archive at Nabble.com.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message novnov 2007-01-03 04:16:11 Re: Installing support for python on windows
Previous Message Adrian Klaver 2007-01-03 00:41:33 Re: Installing support for python on windows