Thinking of mysql repeatable read

At first, I couldn’t figure it out. During repeatable reading, transaction 1 cannot read the update of transaction 2. What is the result stored in the database at the end? Is it read by transaction 1 or inserted by transaction 2?

It turns out that the result is that, for conflicting values, whoever submits it last will store the inserted value in the database. No conflicting values ​​will be stored.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326524310&siteId=291194637