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.