getting currval from a sequence

From: tony <tony(at)animaproductions(dot)com>
To: postgres list <pgsql-general(at)postgresql(dot)org>
Subject: getting currval from a sequence
Date: 2002-02-11 10:42:31
Message-ID: 1013424151.2089.24.camel@vaio
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello,

I would like to be able to get currval from a sequence but am running
ito the "current session" limitation.

I need to get the id of the previous record either during a session or
on a cold start (next morning for example).

How does one get the last record from a series of records? I just need
the id field which is a sequence field

Cheers

Tony Grant

--
RedHat Linux on Sony Vaio C1XD/S
http://www.animaproductions.com/linux2.html
Macromedia UltraDev with PostgreSQL
http://www.animaproductions.com/ultra.html

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Sherry 2002-02-11 11:33:35 Re: Fetature enhancement request : use of libgda in
Previous Message Jean-Michel POURE 2002-02-11 10:20:04 Re: Fetature enhancement request : use of libgda in PostgreSQL to access legacy databases.