You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
如果在事务 A 执行范围查询的过程中,事务 B 插入了新的数据行或删除了某些数据行,并且在事务 A 再次执行相同的范围查询时,发现多了或少了一些数据行,就会出现幻读现象。
幻读问题在范围查询中的典型案例是使用 WHERE 子句的范围条件,例如 "SELECT * FROM table WHERE column BETWEEN value1 AND value2"。在这种情况下,事务 A 的一致性视图无法捕捉到事务 B 插入或删除的数据行,导致事务 A 在再次执行查询时看到了新增或减少的数据行,产生了幻读。
https://zq99299.github.io/note-book/back-end-storage/01/04.html
《事务:账户余额总是对不上账,怎么办?》
这篇文章里面对幻读的解释是不是有问题
幻读,再执行查询的时候,应该是能查到id为1000的流水的?
The text was updated successfully, but these errors were encountered: