Re: writing a function to mimic mysql last_insert_id

From: Josh Berkus <josh(at)agliodbs(dot)com>
To: "Beth Gatewood" <beth(at)vizxlabs(dot)com>, <pgsql-sql(at)postgresql(dot)org>
Subject: Re: writing a function to mimic mysql last_insert_id
Date: 2002-09-11 17:30:46
Message-ID: 200209111030.46289.josh@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


Beth,

> I am wondering if I can get some input on the logic that I would need to
> code a function that would mimic mysql's last_insert_id()..

Um, what about CURRVAL('sequence-name')?

--
-Josh Berkus
Aglio Database Solutions
San Francisco

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Ross J. Reedstrom 2002-09-11 17:32:20 Re: writing a function to mimic mysql last_insert_id
Previous Message Beth Gatewood 2002-09-11 17:23:35 writing a function to mimic mysql last_insert_id