Serial type currval

From: Oleg Lebedev <oleg(dot)lebedev(at)waterford(dot)org>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Serial type currval
Date: 2003-09-12 16:09:23
Message-ID: 993DBE5B4D02194382EC8DF8554A52731D7573@postoffice.waterford.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I am wondering if it's possible to retrieve the current value of a
serial type field without using the name of the corresponding sequence?
I know that currval function takes the sequence name as a parameter, but
I would like to use the name of the serial field instead. Is this
possible?
Thanks.

Oleg

*************************************

This e-mail may contain privileged or confidential material intended for the named recipient only.
If you are not the named recipient, delete this message and all attachments.
Unauthorized reviewing, copying, printing, disclosing, or otherwise using information in this e-mail is prohibited.
We reserve the right to monitor e-mail sent through our network.

*************************************

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Robert Treat 2003-09-12 16:11:59 Re: library version problem, 7.3.2, php, redhat linux
Previous Message Manfred Koizar 2003-09-12 16:07:53 Re: State of Beta 2