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?
Discussion 0
Join free to post in the discussion.
Related questions
- Durability in ACIDDatabase Administrator
- Why a write-ahead log existsDatabase Administrator
- What ROLLBACK undoesDatabase Administrator
- Why InnoDB over MyISAMDatabase Administrator
- Finding slow MySQL queriesDatabase Administrator
- How InnoDB stores table rowsDatabase Administrator
- What an InnoDB secondary index points toDatabase Administrator
- type = ALL in MySQL EXPLAINDatabase Administrator