Re: mysql's last_insert_id

From: Dennis Björklund <db(at)zigo(dot)dhs(dot)org>
To: Bo Lorentsen <bl(at)netgroup(dot)dk>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: mysql's last_insert_id
Date: 2003-08-29 10:13:50
Message-ID: Pine.LNX.4.44.0308291211360.4053-100000@zigo.dhs.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 29 Aug 2003, Bo Lorentsen wrote:

> currval will generate an error if nextval is not called in current
> session, insuring :-)

Yea, that is a good thing. It gives you the last generated id in your
session. If you have never generated an id with nextval() there is no id
to give you. It can't just give you an id from another session, now can
it.

--
/Dennis

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Martijn van Oosterhout 2003-08-29 10:23:32 Re: process big
Previous Message Sander Smeenk 2003-08-29 09:58:37 PostgreSQL upgrade -> fails to start server