Which of the following allows phantom read in JDBC, connection class?
A) transaction_read_uncommittedb) transaction_read_ committedc) transaction_serializabled) transaction_repeatable_read.Explanation: a phantom read is where one transaction reads all rows that satisfy a where condition, a second transaction inserts a row that satisfies that where condition, and the first...
These will allow phanthom read
Read_uncommited
Read_commited
Repeatable_read
Guys ...do not give any wrong answers,If you know very well then answer.
Here to avoid the phatom read ,we will go for TRANSATION_SERIALIZABLE ,Which blocks the records in row level .But this affects performance drastically .
Hence the answer is "C "