uce/site/doc/pages/mysql_insert_id.txt
2026-06-16 12:21:31 +00:00

18 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
:see
>mysql
:content
Returns the last automatically assigned row ID used by the current MySQL connection.
This is typically used after an `INSERT` into a table with an `AUTO_INCREMENT` primary key.
:example
print("mysql_insert_id is resource-bound; configure the service or connection, then call it in request code.\n");