do database transactions prevent other users from interfering with it

后端 未结 6 1974
失恋的感觉
失恋的感觉 2021-01-01 04:25

Suppose I do (note: the syntax below is probably not correct, but don\'t worry about it...it\'s just there to make a point)

Start Transaction
INSERT INTO tab         


        
6条回答
  •  囚心锁ツ
    2021-01-01 04:50

    As other user is updating the same row, row level lock will be applied. So he is able to make change only after your transaction ends. So you will be seeing the result set that you inserted. Hope this helps.

提交回复
热议问题