Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group