#开始事务
start transaction;
#操作前查询
select ...
#操作
update | insert | delete
#操作后查询
select
#提交事务
#COMMIT;
#回滚事务
ROLLBACK;
#开始事务
start transaction;
#操作前查询
select ...
#操作
update | insert | delete
#操作后查询
select
#提交事务
#COMMIT;
#回滚事务
ROLLBACK;