当前位置: 代码迷 >> Sql Server >> 请教在Sql Server中有没有子查询更新数据
  详细解决方案

请教在Sql Server中有没有子查询更新数据

热度:13   发布时间:2016-04-27 20:03:21.0
请问在Sql Server中有没有子查询更新数据
如题

------解决方案--------------------
當然有。如:
update a set a.num = (select count(1) from b )
where...........
  相关解决方案