--放到一个事务处理,事务处理完成后,自动释放锁
begin tran
--更新处理
update a set a='x' from ta a WITH (XLOCK)
update b set a='x' from tb b WITH (XLOCK)
commit tran
begin tran
--更新处理
update a set a='x' from ta a WITH (XLOCK)
update b set a='x' from tb b WITH (XLOCK)
commit tran
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货