What are the four standard SQL isolation levels? Explain the difference between 'Read Committed' and 'Repeatable Read' in terms of the anomalies they prevent.

Last updated 3 July 2026

  • The four levels are READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, and SERIALIZABLE.

  • READ COMMITTED: each statement sees only data committed before it starts. It prevents dirty reads but allows non-repeatable reads (re-reading a row gives a different value) and phantoms.

  • REPEATABLE READ: uses one consistent snapshot for the whole transaction, so re-read rows never change. It prevents dirty and non-repeatable reads, but the standard still allows phantoms.

  • https://www.postgresql.org/docs/current/transaction-iso.html
  • https://dev.mysql.com/doc/refman/8.1/en/innodb-transaction-isolation-levels.html
  • https://learn.microsoft.com/en-us/sql/t-sql/statements/set-transaction-isolation-level-transact-sql?view=sql-server-ver17
  • https://dev.to/devcorner/understanding-database-isolation-levels-a-developers-guide-to-consistent-transactions-6og
  • https://dev.to/philip_mcclarence_2ef9475/postgresql-transaction-isolation-levels-explained-52kj
  • https://www.pingcap.com/article/exploring-read-committed-and-repeatable-read-isolation-levels/
All SQL interview questions