I created a transaction in a stored procedure with some update statements. What will happen if the transaction is running, and one select request the value from the updating table?
I created a transaction in a stored procedure with some update statements. What will
Share
MySQL will return the value of the select at that specific point in time. So if the select occurs before the update you will get the before value. If the select occurs after the update you will get the after value.
By default selects are read only so you will not have locking issues.