日期:2014-05-17  浏览次数:21256 次

查询存在A表中不存在B表中的数据
A表
AreaMedian,LocationMedian,Name
001          1000           2
001          1001           2

B表
AreaMedian,LocationMedian
001          1000

结果为
001          1001 


查询A表中没有B表中的数据

B表中存在的数据不显示?

------解决方案--------------------
select AreaMedian,LocationMedian from A
except
select AreaMedian,LocationMedian from B