identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.
identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.
identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.
identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.
identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.
identity
This variable is a synonym for the
last_insert_id variable. It exists for compatibility with other database systems. You can read its value with
SELECT @@identity, and set it using SET identity.
再看看:
last_insert_id
The value to be returned from LAST_INSERT_ID(). This is stored in the binary log when you use LAST_INSERT_ID() in a statement that updates a table. Setting this variable does not update the value returned by the mysql_insert_id() C API function.