do database transactions prevent other users from interfering with it

后端 未结 6 1999
失恋的感觉
失恋的感觉 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

    The only users that get effect is those that require access to the same rows in a table. Otherwise the user will not be affected.

    However is is slightly more complicated as the row locking can be a read lock or a write lock.

    Here is an explanation for the InnoDB storage engine.

提交回复
热议问题