Retrieve auto_increment value after an insert with ODBC
| From: | St�phane | Date: | Wed, 02 Oct 2002 17:57:19 +0000 |
| Subject: | Retrieve auto_increment value after an insert with ODBC | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-22172@lists.php.net to get a copy of this message | ||
Hi,
I use php and db2 database. I wonder if there is a way to retrieve the
value of an auto-increment id after an insert query.
(Like mysql_insert_id on MySQL database.)
The temporary solution is to select record with the same values than the
insert.
Any others solutions?