MySQL transaction level (ii)

Source: Internet
Author: User

A transaction is divided into 4 levels:
1.read Uncommitted ( unread): Cannot avoid dirty reads, non-repeatable reads, virtual reads (phantom reads)
2.read committed ( read-committed ): can avoid dirty reading
3.repeatable committed ( repeatable read): Avoid dirty reads, non-repeatable reads
4.serializable ( serialized): Avoid dirty reads, non-repeatable reads, false reads

Dirty reading refers to the fact that transaction a reads data that is not committed by transaction B

Non-repeatable reading refers to reading the same data, 2 times the result is not the same (focus on modifying the data)

Virtual reading refers to the fact that after transaction a reads some data, transaction B deletes some data, and when transaction a re-reads the data, it finds that some data disappears. Or when transaction a reads some data, transaction B inserts some data, and when transaction a re-reads the data, it finds some inexplicable data.

MySQL transaction level (ii)

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.