Re: ODBC equiv for mysql_insert_id

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux