RE: [PEAR] Another Pear::DB question

From: Date: Fri, 19 Sep 2003 20:32:32 +0000
Subject: RE: [PEAR] Another Pear::DB question
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-7929@lists.php.net to get a copy of this message
> From: Jan Skopek [mailto:skopek@gmx.de] > Sent: Friday, September 19, 2003 10:24 PM > "Chuck Hagenbuch" <chuck@horde.org> schrieb im Newsbeitrag > news:1064001346.74c7e6edbe0e3@marina.horde.org... > > Quoting Jan Skopek <skopek@gmx.de>: > > > > > anyone knows how i can get the last-insert-id with Pear::DB? > > > I am using mysql-driver. > > > > Don't use an abstraction layer if you want to use MySQL-specific > features. > (In > > other words, you can't.) > > Thanx for the Tip, but i have to use one (project-standard). > Is there no other way in ::DB getting the last-insert-id ? > If not, then the only way i see is to do a "SELECT MAX(id) FROM table". SELECT last_insert_id() And please promise to search the archive next time! Regards, Lukas

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