8i
select p1.* from p1,p2 where p1.col=p2.col(+) 
and p2.col is null
union all
select p2.* from p1,p2 where p1.col(+)=p2.col 
and p1.col is null;

解决方案 »

  1.   

    p1,p2两个表的字段完全相同吗?里面的纪录有重复吗?如果两个表的字段完全相同select * from p1union (如果里面纪录没有重复,用union all)select * from p2
      

  2.   


    ((select * from p2) minus (select * from p1))
    union
    ((select * from p1) minus(select * from p2));注意,不要去除双层括号,union的优先级别比minus高
      

  3.   

    union 是合并两个记录集.使用union要注意:字段类型必须相同,字段数目必须相同/.
    如果两个记录集中有一样的记录,则只留一条,如果想显示全部记录,则用union all