select decode(no,1,name,''),decode(no,2,name,'') from
(
select 1 no,code,name from tab1 where code in (select distinct code from tab2)
union all
select 2 no,code,name from tab2
) tab3
order by tab3.code
(
select 1 no,code,name from tab1 where code in (select distinct code from tab2)
union all
select 2 no,code,name from tab2
) tab3
order by tab3.code
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货