select t1Joint2.c1,t1Joint3.c3 from
(select * from table1 where name = "some") t1,
(select t1.c1,t2.c2 from table2 t2 where t1.c1 = t2.c2) t1Joint2,
(select t1.c1,t3.c3 from table3 t3 where t1.c1 = t3.c3) t1Joint3,
;
Run Code Online (Sandbox Code Playgroud)
以上查询在Oracle中不起作用.
任何解决方法?
使用Oracle 11g.
为什么不把它写成:
select t1.c1, t3.c3
from table1 t1
join table2 t2 on t1.c1 = t2.c2
join table3 t3 on t1.c1 = t3.c3
where name = "some"
Run Code Online (Sandbox Code Playgroud)