uce/site/doc/pages/mysql_insert_id.txt

17 lines
457 B
Plaintext

:sig
u64 mysql_insert_id(MySQL* m)
:params
m : pointer to an active MySQL connection
return value : the last used automatic row ID
:desc
This retrieves the last row ID that was used for a column with an AUTO_INCREMENT row key.
:see
>mysql
:related
**PHP:** Modern PHP database access through `mysqli_*` or PDO methods rather than the old `mysql_*` family
**JavaScript / Node.js:** Node database clients such as `mysql2`, query builders, or ORM adapters