sqlserver怎么加悲觀鎖?
就是在查詢數(shù)據(jù)時(shí),加上一句話,比如
查詢某個(gè)表時(shí),select * from Card with (UPDLOCK) where 1=1,其中with (UPDLOCK)就是悲觀鎖的標(biāo)志!
sqlserver怎么加悲觀鎖?
就是在查詢數(shù)據(jù)時(shí),加上一句話,比如
查詢某個(gè)表時(shí),select * from Card with (UPDLOCK) where 1=1,其中with (UPDLOCK)就是悲觀鎖的標(biāo)志!