Re: ODBC equiv for mysql_insert_id
| From: | CPT John W. Holmes | Date: | Mon, 16 Jun 2003 13:28:10 +0000 |
| Subject: | Re: ODBC equiv for mysql_insert_id | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-28641@lists.php.net to get a copy of this message | ||
> I am connecting to MySQL (4.1) using ODBC (I have my reasons) and am
looking
> for an equivalent to the mysql_insert_id() function so that I can get the
ID
> of the record just created.
You could always just issue a SELECT LAST_INSERT_ID() query and get the
resulting number that way.
---John Holmes...