oracle中这样的一个查询
select * from
(
select * from table_A t --------- 1
where t.id = 'xxx'
and t.name = 'xxx'
) t_sub
where t_sub.col1 = 'xxx' ------------2
and t_sub.col2 = 'yyyy'
是子查询1 先执行 还是 where条件2 先执行?
oracle中这样的一个查询
select * from
(
select * from table_A t --------- 1
where t.id = 'xxx'
and t.name = 'xxx'
) t_sub
where t_sub.col1 = 'xxx' ------------2
and t_sub.col2 = 'yyyy'
是子查询1 先执行 还是 where条件2 先执行?
嗯 看第二个还算符合子查询的写法。
这个就是后执行2.