首先insert大致上可以分成三类: 1、simple insert 如insert into t(name) values('test') 2、bulk insert 如load data | insert into ... select .... from .... 3、mixed insert 如insert into t(id,name) values(1,'a'),(null,'b'),(5,'c');
直接通过命令修改会报错: mysql(mdba@localhost:(none) 09:32:19)>set global innodb_autoinc_lock_mode=2; ERROR 1238 (HY000): Variable 'innodb_autoinc_lock_mode' is a read only variable