Transaction and transaction isolation level and paradigm

ACID of the transaction

Atomicity: Either all succeed or all fail.
Consistency: Two SQL statements for data consistency.
Permanence: SQL takes effect permanently.
Isolation:

Transaction isolation level:

The first level
can only be written by one

The second level
one write, read and write is prohibited

Level 3 When
a transaction is read n times, read and write are prohibited

The fourth level of
serialization,
each transaction is queued for execution,

Solve in turn
1. Lost update
2. Dirty read (read not submitted)
3. Non-repeatable read
4. Phantom read

Three paradigms:

First normal form: indivisible
Insert picture description here

Second normal form:
Insert picture description here

Third Normal Form:
Insert picture description here

Guess you like

Origin blog.csdn.net/BOWWOB/article/details/113832244