beginnerIsolation Levels — Dirty Read, Phantom Read, Non-Repeatable Read

What is the difference between READ COMMITTED and REPEATABLE READ?

READ COMMITTED: each SQL statement sees the most recently committed data at statement start. If Transaction B commits between two SELECT statements in Transaction A, Transaction A's second SELECT sees Transaction B's changes. Prevents dirty reads only. REPEATABLE READ: the entire transaction sees data as of the transaction's start time. Transaction A gets a consistent snapshot: even if Transaction

This is a Pro chapter

Sign in, then upgrade to Pro or Power to unlock this and the full Databases Mastery library.

What is the difference between READ COMMITTED and REPEATABLE READ?

Next Step

Continue to How should your application handle a serialization failure?← Back to all SQL questions