In MySQL, "SC" stands for Second Contract, which is a transaction isolation level. The Second Contract isolation level guarantees the read committed, non-repeatable read and phantom read properties, prevents dirty reads and non-repeatable reads, and allows phantom reads. It is often used in applications that require a high degree of consistency and concurrency.
SC in MySQL
In MySQL, the abbreviation "SC" stands for "Second Contract", which means The second type of contract. It is a transaction isolation level that provides higher visibility to concurrent transactions.
Second Contract isolation level
Second Contract isolation level guarantees the following properties:
Comparison with other isolation levels
The comparison between the Second Contract isolation level and other isolation levels is as follows:
Isolation level | Read committed | Non-repeatable read | Phantom read |
---|---|---|---|
ReadSubmitted | ✓ | ✗ | ✗ |
Repeatable Read | ✓ | ✓ | ✗ |
Serializabl | ✓ | ✓ | ✓ |
Second Contract | ✓ | ✓ | ✓ |
Use Scenario
Second Contract isolation level is typically used in applications that require a high degree of consistency and concurrency. It prevents dirty reads and non-repeatable reads while allowing phantom reads.
The Second Contract isolation level can be used in the following situations:
The above is the detailed content of What does sc mean in mysql?. For more information, please follow other related articles on the PHP Chinese website!