ORACLE 两个表列的合并!解决立马给分
两个表的结构和数据如下:
table 1
col1 clo2 col3
A B 90
A C 80
A D 70
A E 60
A F 50
table 2
col4 clo5 col6
A we 100
A er 90
A rt 80
A yu 70
A oi 60
最后的结果表为:
table 3
col1 clo2 col3 clo5 col6
A B 90 we 100
A C 80 er 90
A D 70 rt 80
A E 60 yu 70
A F 50 oi 60
请教高手!
------解决方案--------------------select * from
(select rownum rn, t1.* from t1),
(select rownum rn, t2.* from t2)
where rn = rn;
------解决方案--------------------两表用什么来关联?