聚合不应出现在 UPDATE 语句的集合列表中,处理方法 update A set 已住人数=b.cc from sushe A,(select 宿舍号, count(*) cc from cw group by 宿舍号) B where a.宿舍号=b.宿舍号进行联合查询。 SQL SERVER 2023-12-26 218 点赞 3 评论 330 浏览