Re: getting back autonumber just inserted

From: Edmund Bacon <ebacon(at)onesystem(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: Re: getting back autonumber just inserted
Date: 2005-02-03 22:53:20
Message-ID: 4202AB60.90608@onesystem.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Perhaps you meant:
http://www.postgresql.org/docs/8.0/interactive/functions-info.html#FUNCTIONS-INFO-SCHEMA-TABLE

in particular |pg_get_serial_sequence|(table_name, column_name)

Sean Davis wrote:

>
> On Feb 3, 2005, at 5:16 PM, lorid wrote:
>
>> I could have sworn I kept a copy of prior emails that discussed how
>> to get back a value that was just inserted into a autonumber (or in
>> postgresql case a sequence number)
>>
>
> See here:
>
> http://www.postgresql.org/docs/8.0/interactive/functions-
> sequence.html#FUNCTIONS-SEQUENCE-TABLE
>
> Sean
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)

--
Edmund Bacon <ebacon(at)onesystem(dot)com>

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Don Drake 2005-02-04 03:06:36 Determining Rank
Previous Message Sean Davis 2005-02-03 22:19:50 Re: getting back autonumber just inserted