INNODBmysql
事务里,全部表引擎必须为INNODB,在非事务表上操做,不会警告,不会报错,但没有效果sql
mysql> begin; # 开始事务 Query OK, 0 rows affected (0.00 sec) mysql> insert into xxx value(x); Query OK, 1 rows affected (0.01 sec) mysql> insert into xxx value(6); Query OK, 1 rows affected (0.00 sec) mysql> commit; # 提交事务 Query OK, 0 rows affected (0.01 sec)