摘要: 奇怪的现象 表结构 原因 解决方法 奇怪的现象(来自MySQL45讲第8章思考题) 当前隔离级别为可重复读 复现过程: 有A、B两个事务 B先执行了语句,并且马上commit begin; update t set c = 0 where id = c; commit; A执行了语句,但是没有com 阅读全文
posted @ 2021-12-17 15:00 Rocin 阅读(49) 评论(0) 推荐(0) 编辑
摘要: 定义 相关命令 找出当前session或者global的隔离级别 设置当前session的隔离级别命令 定义 对于可重复读(repeatable read),查询只承认在事务启动前就已经commit的数据; 对于读提交(read committed),查询只承认在语句启动前就已经commit的数据; 阅读全文
posted @ 2021-12-17 14:57 Rocin 阅读(113) 评论(0) 推荐(0) 编辑