MySQL database transaction ISOLATION LEVEL

Source: Internet
Author: User

Http://www.cnblogs.com/wenfeng762/archive/2011/11/06/2237253.html

http://xm-king.iteye.com/blog/770721

Read uncommited reading dirty data problem non-repeatable read and Phantom read

Read commited non-repeatable reading of Phantom read

REPEATABLE READ Phantom Reading

Serilizable

Read dirty data, because a transaction read the B transaction changed data, but not yet committed, if B rollback, then a read is dirty data

Non-repeatable read, transaction A has a SELECT statement, query two times, b transaction modified the relevant data, the first time before the B transaction commits, the second after the B transaction commits, then two reads the data inconsistent

Phantom Read, transaction A has a SELECT statement, queries two times, two queries, B transactions insert a few data, the second time than the first read more than the number of data bars. However, as noted in the second link above, the database is different from the implementation of the isolation level, so it can only be said that phantom reading can occur

MySQL database transaction ISOLATION LEVEL

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.