SET TRANSACTION ISOLATION LEVEL
{ READ COMMITTED
READ UNCOMMITTED
REPEATABLE READ
SERIALIZABLE
}
- Read Uncommitted: current transaction can read rows modified by other not yet committed transactions
- Read Committed: current transaction cannot read rows modified by other not yet committed transactions
- Repeatable Read: read committed + no other transaction can modify data that has been read by the current transaction, they can just insert
- Snapshot: current transaction can only recognize committed data modification before the start of the current transaction.
- Serializable: repeatable read except other transactions cannot insert rows with key values that fall in the range of keys read in the current transaction.