Re: Another Pear::DB question

From: Date: Fri, 19 Sep 2003 20:06:19 +0000
Subject: Re: Another Pear::DB question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7927@lists.php.net to get a copy of this message
On 19 Sep 2003 at 21:52, Jan Skopek wrote: > anyone knows how i can get the last-insert-id with Pear::DB? > I am using mysql-driver. > > Found DB_Common::nextId. But thats not the same. Afaik you can't, but have to get the next "sequence id" before doing the insert and use that id. This is the only way that's portable between all DBMS. @all: correct me if I'm wrong :-) Stefan

« previous php.pear.general (#7927) next »