NVL(**, 0) 的意思是 如果 ** 是NULL, 则取 0值;
通过查询获得某个字段的合计值,如果这个值为null将给出一个预设的默认值。
b表为a表的拷贝;
通过语句查询b表 缺失记录;
select * from a, b where a.oid= b.oid(+) and nvl(b.mapid,0)=0;
NVL(**, 0) 的意思是 如果 ** 是NULL, 则取 0值;
通过查询获得某个字段的合计值,如果这个值为null将给出一个预设的默认值。
b表为a表的拷贝;
通过语句查询b表 缺失记录;
select * from a, b where a.oid= b.oid(+) and nvl(b.mapid,0)=0;