sql server多表数据批量更新时间:2023-03-09 17:54:22 update wset w.TagCount=x.TagCountfrom (select ItemID,COUNT(*) as TagCount from r where IsValid=1 group by ItemID) as xwhere ID =4 and IsValid=1 and w.ID=x.ItemID