加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > Java > 正文

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

发布时间:2020-12-15 00:00:34 所属栏目: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
从 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.

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读