mysql回滚点 Save point语句用法

时间:2021-06-06 19:24:38   收藏:0   阅读:0

Begin         -- 事务开启

insert ...

update ...

Save point pointA;       -- 保存点A,名字随便取

insert ...

update ...

Save point pointB;        -- 保存点B,名字随便取

Rollback to pointA;        -- 回滚至保存点A

Rollback;                       -- 全部回滚

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!