begin tran select * from VDFY024_USR_PRFL_INFO WITH (TABLOCKX) --排它锁 waitfor delay '00:00:20' --等待30秒 commit tran