Environment: mysql 5.7
transaction isolation level repeatable read
table is as follows:
:
: id = 2
:
SQL
my question is: why does my session need to be submitted again in order to view the updated data of session II?
No for update. Is to simply open two transactions. Session 2 updates the data and commits the transaction. Session 1 commits the transaction and looks at the data. It is
that you can see the data updated by session 2.