MySQL在一个Session中多次开启事务会提交上一个活跃的事务

 

Begin1:Begin  

    Begin2:Begin,执行Begin会隐式提交Begin1开启的事务.

    Commit:提交Begin2事务

 

更多隐式提交事务的语句参见官网:https://dev.mysql.com/doc/refman/8.0/en/implicit-commit.html

posted @ 2023-04-19 22:13  bf378  阅读(94)  评论(0编辑  收藏  举报