The difference between phantom reading and non-repeatable reading

Source: Internet
Author: User

The key to non-repeatable reading is to modify:
The same condition that you read the data, read it again and find that the value is different

The focus of Phantom reading is to add or delete
The same conditions, the 1th and 2nd readings of the number of records are not the same
Of course, judging from the overall results, it seems that both of them appear to be inconsistent with the results of two reads.

But if you look at it from the point of view of control, the difference between the two is larger
For the former, only the record that satisfies the condition needs to be locked
For the latter, lock the record that satisfies the condition and its close

Non-repeatable reading focuses on update
The key to Reading is Insert,delete

The difference between phantom reading and non-repeatable reading

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.