View Single Post

   
  #2 (permalink)  
Old 04-12-2008, 06:37 AM
David Fetter
 
Posts: n/a
Default Re: Access last inserted tuple info...

On Wed, Jan 24, 2007 at 12:56:14PM -0400, Luis D. Garc?a wrote:
>
> Hi, I'm working on a modification of PostgreSQL 8.1.4 and I need to access
> the
> information stored in the last tuple inserted in a table (All this from the
> backend
> code).
> Could anyone please help me on this?
> Greetings and Thanks...


8.2 has (INSERT/UPDATE/DELETE) ... RETURNING. Perhaps you could use
the 8.2 series instead

Cheers,
David.
--
David Fetter <david@fetter.org> http://fetter.org/
phone: +1 415 235 3778 AIM: dfetter666
Skype: davidfetter

Remember to vote!

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Reply With Quote