Re: Request for lastID

From: Date: Thu, 29 Mar 2001 01:29:34 +0000
Subject: Re: Request for lastID
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-129@lists.php.net to get a copy of this message
Colin Viebrock wrote: > > mysql_insert_id() is a very highly used PHP function. If we hope to convert > people to using PEAR's DB, then keeping at least a non-portable version of > this will save people a *lot* of recoding. > > Maybe this functionality can be emulated in the other DBs? I don't know if > auto_increment fields are specific to MySQL. > I think, this functionality is very specif of MySQL, and probably can't be emulated by the other backends. The common way to do this is using sequences that are "supported" by Pear DB. Tomas V.V.Cox

« previous php.pear.dev (#129) next »