DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

(mysql.info) mysql-stmt-insert-id

Info Catalog (mysql.info) mysql-stmt-init (mysql.info) c-api-prepared-statement-functions (mysql.info) mysql-stmt-num-rows
 
 22.2.7.16 `mysql_stmt_insert_id()'
 ..................................
 
 `my_ulonglong mysql_stmt_insert_id(MYSQL_STMT *stmt)'
 
 *Description*
 
 Returns the value generated for an `AUTO_INCREMENT' column by the
 prepared `INSERT' or `UPDATE' statement. Use this function after you
 have executed a prepared `INSERT' statement on a table which contains
 an `AUTO_INCREMENT' field.
 
 See  mysql-insert-id, for more information.
 
 *Return Values*
 
 Value for `AUTO_INCREMENT' column which was automatically generated or
 explicitly set during execution of prepared statement, or value
 generated by `LAST_INSERT_ID(EXPR)' function. Return value is undefined
 if statement does not set `AUTO_INCREMENT' value.
 
 *Errors*
 
 None.
 
Info Catalog (mysql.info) mysql-stmt-init (mysql.info) c-api-prepared-statement-functions (mysql.info) mysql-stmt-num-rows
automatically generated byinfo2html