日期:2014-05-16  浏览次数:20485 次

两张表,提取其中一张表中没有的数据
表a,表b,他们拥有同样的column,如何提取表b中的数据,让它们不在表a中出现过,这样的结果是表a和表b中将不出现同样的数据

select a.field, b.field from a, b where a.field(+) = b.field and a.field is null


进一步改进的话就是如下:

select b.field from a, b where a.field(+) = b.field and a.field is null