Re: auto increment

From: Date: Tue, 17 Feb 2004 19:31:58 +0000
Subject: Re: auto increment
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178010@lists.php.net to get a copy of this message
marc serra wrote:
Hi, i use PEAR DB with a mysql database and i want to know if there is a solution to get last inserted id in a table. If the id is auto increment, can't you use max(id) to get the last inserted one?
Best Bao
I see that I can use sequences but it doesn't work with mysql. Thanks, Marc.


« previous php.general (#178010) next »