Home > database > When the update relative transactional consistency problems will arise?
When the update relative transactional consistency problems will arise?
Time:10-08
Everybody discussion SQL consistency problems are generally such two SQL
Upadte table set value=https://bbs.csdn.net/topics/0;
Upadte table set value=https://bbs.csdn.net/topics/100;
This update SQL under the high concurrency problem is almost a certainty, because the value has been written to death, there is no room for everything, once appear, dirty reads, etc., the value is wrong
But such SQL
Upadte table set value=https://bbs.csdn.net/topics/value - 100;
Upadte table set value=https://bbs.csdn.net/topics/value + 50;
Oracle in the update insert, delete is said automatic row-level locks So in that case, I feel this kind of to update relative writing should be no transaction issues
Want to discuss with everybody I the idea isn't the right
Looking forward to you comments
CodePudding user response:
Oracle will not appear dirty read
Update and row-level locking is who say, I'm going to check out the address
CodePudding user response:
1, the problem of the building Lord, I do a little look not to understand, also don't know where do we get the original poster these opinions or views, personal feel inappropriate; 2, write this two kinds of SQL, the original poster will be involved in the transaction; 3, by default, Oracle will not occur dirty degree, Oracle default transaction level to read commttied,