|
从
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.
因此,不可重复的读取在于读取两个不同的承诺值,而脏读取在于读取尚未提交的值.很不一样. (编辑:安卓应用网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|