SQL Server给数据库表加锁
begin tran
select * from VDFY024_USR_PRFL_INFO WITH (TABLOCKX) --排它锁
waitfor delay '00:00:20' --等待30秒
commit tran
网络上志同道合,我们一起学习网络安全,一起进步,QQ群:694839022
begin tran
select * from VDFY024_USR_PRFL_INFO WITH (TABLOCKX) --排它锁
waitfor delay '00:00:20' --等待30秒
commit tran