do database transactions prevent other users from interfering with it

后端 未结 6 2000
失恋的感觉
失恋的感觉 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 05:03

    For efficiency reasons, developers do not set transactions to totally isolated for each other. Databases support multiples isolation levels namely Serializable, Repeatable reads, Read committed and Read uncommitted. They are list from the most strict to least strict.

提交回复
热议问题