从
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.
因此,不可重复的读取在于读取两个不同的承诺值,而脏读取在于读取尚未提交的值.很不一样.