SQL Server给数据库表加锁

  begin tran   

    select * from VDFY024_USR_PRFL_INFO  WITH (TABLOCKX)  --排它锁 

    waitfor delay '00:00:20' --等待30秒   

    commit tran  

posted @ 2019-04-12 17:07  SEC.VIP_网络安全服务  阅读(231)  评论(0编辑  收藏  举报