#关闭自动提交 SET autocommit=0; #开启事务 START TRANSACTION; #手动提交事务 #commit; #回滚事务 ROLLBACK; #开启自动提交 SET autocommit=1;