如题,我试了left outer join ,right outer join ,都能用,为什么这个用不了呢?是有别的写法吗?

解决方案 »

  1.   

    至少在5.1。17中不支持FULL JOIN,用LEFT JOIN+RIGHT JOIN解决
      

  2.   

    仅少数数据库支持outer join的,具体实现可以select a.*,b.* from a left join b on a.id=b.id
    union 
    select a.*,b.* from a right join b on a.id=b.id and a.id is null.
        [align=center]====  ====
    [/align]
    .
    贴子分数<20:对自已的问题不予重视。
    贴子大量未结:对别人的回答不予尊重。
    .
      

  3.   

    full join