select a.*,b.* from a full out join b on a.code=b.code

解决方案 »

  1.   

    全连接好像9i才有
    如果是8i
    select a.*,b.* from a,b where a.code=b.code(+)
    union
    select a.*,b.* from a,b where a.code(+)=b.code;
      

  2.   

    直接用code关联是会产生笛卡尔积的
      

  3.   

    to:bzszp(www.bzszp.533.net) ( )
     我感觉你这样一来出来的不止4条数据吧
      

  4.   

    select a.*,b.* from a full out join b on a.code=b.code
      

  5.   

    对,用全连接或者左连接union右连接都行。