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 prepared
INSERT statement into a table which
contains an AUTO_INCREMENT field.
See Sección 24.2.3.34, “mysql_insert_id()” for more information.
This function was added in MySQL 4.1.2.
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(
function. Return value is undefined if statement does not set
expr)AUTO_INCREMENT value.
Errors
None.
Ésta es una traducción del manual de referencia de MySQL, que puede encontrarse en dev.mysql.com. El manual de referencia original de MySQL está escrito en inglés, y esta traducción no necesariamente está tan actualizada como la versión original. Para cualquier sugerencia sobre la traducción y para señalar errores de cualquier tipo, no dude en dirigirse a mysql-es@vespito.com.
