当前位置: 代码迷 >> Sql Server >> 是否无法将使用外连接的结果集作为子查询的对象解决办法
  详细解决方案

是否无法将使用外连接的结果集作为子查询的对象解决办法

热度:10   发布时间:2016-04-25 00:04:45.0
是否无法将使用外连接的结果集作为子查询的对象
是否无法将使用外连接的结果集作为子查询的对象

如:
select * from (select * from t1 a left join t2 b on a.id=b.id)

------解决方案--------------------
select * from (select * from t1 a left join t2 b on a.id=b.id) as t --加个别名
  相关解决方案