Re: PEAR correspondent for mysql_insert_id()
| From: | Sebastian Bergmann | Date: | Wed, 19 Dec 2001 21:04:13 +0000 |
| Subject: | Re: PEAR correspondent for mysql_insert_id() | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-617@lists.php.net to get a copy of this message | ||
Luc Saint-Elie wrote:
> What is the PEAR equivalent of mysql_insert_id() to know the value of
> the last auto-increment field ?
auto_increment is MySQL's way of implementing sequences. PEAR DB
abstracts sequences using the nextID() method and uses low-level
features, if available, of the underlying RDBMS.
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/