在SQL语句前设置 set autocommit = 0; 即取消MySql 的自动提交
set autocommit = 0;
delete from table1 where id =xxx;
commit; or rollback;
在SQL语句前设置 set autocommit = 0; 即取消MySql 的自动提交
set autocommit = 0;
delete from table1 where id =xxx;
commit; or rollback;