阅读背景:

使用oracle 11g联合所有查询

来源:互联网 
select x,y
from table 1, table 2
where table1.location = 'IL' and table1.col1 = table2.col1 
union all 
select x,y
from table 1, table 3
where table1.location = 'NY' and table1.col2 = table3.col2 
union all 
select x,y
from table 1, table 4
where table1.location = 'KY' and table1.col1 = table4.col1 
union all 
select x,y
from table 1, table 5
where table1.location = 'TX' and table1.col1 = table5.col1 
select x,y
from table 1, table 2
where table1.l



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: