📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is a phantom read?

A. A dirty read of a deleted row
B. A read of a NULL value
C. A new row appearing in a repeated query because another transaction inserted it ✅
D. A row disappearing after commit

Correct Answer: C. A new row appearing in a repeated query because another transaction inserted it

Explanation

  • A phantom read is a new row matching the query that appears on a second read.
  • SERIALIZABLE isolation prevents phantom reads.