Skip to content
RED SAG Skills
hardStudy question · answer published in MySQL interview questions, so no pointstransactionsmysqlisolation-levels

SELECT and SELECT FOR UPDATE disagree

In MySQL InnoDB at Repeatable Read, a transaction reads stock = 10 with a plain SELECT. Another transaction commits stock = 4. The first then runs SELECT stock ... FOR UPDATE. What does it return?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions