有表a和表b 字段名相同,现想查询a.fly!=‘财’ 和b.fly=‘财’中a.qh=b.qh的数据
------解决思路----------------------
要这个结果?
select * from a,b
where a.fly<>'财' and b.fly='财' and a.qh=b.qh
还是这个?
select qh from a where a.fly<>'财'
intersect
select qh from b where b.fly='财'
select * from a,b
where a.fly<>'财' and b.fly='财' and a.qh=b.qh
select qh from a where a.fly<>'财'
intersect
select qh from b where b.fly='财'