悲观锁解决方案:
select @count=count from tb WITH(UPDLOCK)
https://www.cnblogs.com/dengshaojun/p/3955826.html