日期:2014-05-17 浏览次数:20990 次
集合1.select A_no from taba,tabc,tabd where ***************** UNION ALL 集合2.select A_no from taba,tabb where *****************
------解决方案--------------------
给多一个不相同的字段B2,
集合1.select A_no,B2 from taba,tabc,tabd where ***************** INTERSECT 集合2.select A_no,B2 from taba,tabb where *****************
------解决方案--------------------
select A_no from taba,tabc,tabd where A_no in
(select A_no from taba,tabb where *****************)
and 其它条件
------解决方案--------------------
select A_no from taba,tabc,tabd where *****************
and A_no in ( select A_no from taba,tabb where ***************** )
------解决方案--------------------
select t1.a_no
from (select A_no from taba,tabc,tabd where *****************) t1
where exists
(select 1 from (select A_no from taba,tabb where *****************) t2
where t2.a_no = t1.a_no)