RE: [PHP-DB] Retrieve auto_increment value after an insert with ODBC

From: Date: Wed, 02 Oct 2002 18:41:10 +0000
Subject: RE: [PHP-DB] Retrieve auto_increment value after an insert with ODBC
Groups: php.db 
Request: Send a blank email to php-db+get-22173@lists.php.net to get a copy of this message
You can select max(aifield) immediately after the insert. :-) <>< Ryan -----Original Message----- From: Stéphane [mailto:wergedor@hotmail.com] Sent: Wednesday, October 02, 2002 11:57 AM To: php-db@lists.php.net Subject: [PHP-DB] Retrieve auto_increment value after an insert with ODBC 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? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.db (#22173) next »