摘要:
with temp(id,name,curlevel,hasChild) as ( --初始查询 select id,name,1 curlevel,1 hasChild from tabName pc with(nolock) where Disabled = 0 and ParentId is 阅读全文
摘要:
update top(1) Products with(updlock,readpast) set Status = 1 output Deleted.Id as PoolSkuId from (select top 1 Id from Products where Deleted = 0 and 阅读全文