java – 不可重复读取与脏读取之间的差异

前端之家收集整理的这篇文章主要介绍了java – 不可重复读取与脏读取之间的差异前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
this oracle java教程:

A non-repeatable read occurs when transaction A retrieves a row,
transaction B subsequently updates the row,and transaction A later
retrieves the same row again. Transaction A retrieves the same row
twice but sees different data.

脏阅读与不可重复阅读有什么区别?这不一样吗?阅读错误的结果由于别人的更新?

提前致谢.

解决方法

完全相同的页面解释了什么是脏读:

Accessing an updated value that has not been committed is considered a dirty read because it is possible for that value to be rolled back to its prevIoUs value. If you read a value that is later rolled back,you will have read an invalid value.

因此,不可重复的读取在于读取两个不同的承诺值,而脏读取在于读取尚未提交的值.很不一样.

原文链接:https://www.f2er.com/java/127033.html

猜你在找的Java相关文章