mysql_stmt_insert_id()返回由预处理的INSERT或UPDATE语句为AUTO_INCREMENT列生成的值。 语法 my_ulonglongmysql_stmt_insert_id(MYSQL_STMT*stmt) 返回值 返回在执行 Prepared Statement 期间自动生成或显式设置的AUTO_INCREMENT列的值,或由LAST_INSERT_ID(expr)函数生成的值。
my_ulonglongmysql_stmt_insert_id(MYSQL_STMT*stmt) Description Returns the value generated for anAUTO_INCREMENTcolumn by the preparedINSERTorUPDATEstatement. Use this function after you have executed a preparedINSERTstatement on a table which contains anAUTO_INCREMENTfield. SeeSection 5.4.38, “mysql...
Bug #34768nondeterministic INSERT using LIMIT logged in stmt mode if binlog_format=mixed Submitted:22 Feb 2008 21:19Modified:29 Mar 2008 18:24 Reporter:Sven SandbergEmail Updates: Status:ClosedImpact on me: None Category:MySQL Server: ReplicationSeverity:S2 (Serious) ...