pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Josh Berkus <josh@agliodbs.com>
To: Beth Gatewood <beth@vizxlabs.com>
To: pgsql-sql@postgresql.org
Subject: Re: writing a function to mimic mysql last_insert_id
Date: Wed, 11 Sep 2002 10:30:46 -0700
Message-ID: <200209111030.46289.josh@agliodbs.com> (raw)
In-Reply-To: <000701c259b7$f68b3280$0c00000a@bethvizx>
References: <000701c259b7$f68b3280$0c00000a@bethvizx>


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




view thread (9+ messages)  latest in thread

Message-ID: <200209111030.46289.josh@agliodbs.com>
Permalink:  ../200209111030.46289.josh@agliodbs.com/
Also on:    postgresql.org/message-id/200209111030.46289.josh@agliodbs.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: josh@agliodbs.com, beth@vizxlabs.com
  Subject: Re: writing a function to mimic mysql last_insert_id
  In-Reply-To: <200209111030.46289.josh@agliodbs.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox