update a set state = isnull((select count(1) from b where a.PriceID = b.PriceID),0) from a
--? UPDATE TA SET STATE='B' FROM TB WHERE TA.PriceID=TB.PriceID AND TB.ItemCode=3
22,181
社区成员
121,573
社区内容
加载中
试试用AI创作助手写篇文章吧