Characteristics of the transaction: ACID
Atomicity: atomicity
Consistency: Consistency
Isolation: Isolation
Duration: Persistence
The four isolation levels for transactions are defined in the SQL standard:
1,read UNCOMMITTED UNCOMMITTED Read
Modifications in the transaction, even if they are not committed, are visible to other transactions. That is, a transaction can read uncommitted data, which results in dirty reads.
2,read committed Submit Read
The majority system is this level, Oracle is this level, but MySQL is not at this level.
The transaction level definition: At the beginning of a transaction, you can only "see" the changes that have been made to the transactions that have been submitted. In other words, any changes you make to a transaction from start to commit are not visible to other transactions.
3,repeatable Read Repeatable reads
Transactions that read data prohibit write transactions (but allow read transactions), and write transactions prohibit any other transactions. MySQL is at this level by default.
4,serializable can be serialized
It is the highest isolation level, and serializable locks on every row of data read, so it can cause a large number of timeouts and lock contention issues.