Re: PEAR::DB and autoincrement

From: Date: Tue, 21 Mar 2006 13:10:49 +0000
Subject: Re: PEAR::DB and autoincrement
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23365@lists.php.net to get a copy of this message
Paolo Sala wrote:
In a mysql table I have set the property autoincrement for obtaining unique IDs for data rows. There is a way to know the ID mysql have generated after an insert sql statement executed using pear::db? Is the best solution substitute the mysql autoincrement property with pear::db sequences?
yes .. DB is now in maintaince mode, so this feature will probably never be added. if you do need it consider migrating to MDB2 which has a lastInsertID() method. regards, Lukas

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