select  
    a.*,
    b.*,
    c.*,
    d.* 
  from
    a left join b on a.id = b.id
    left join c on a.id = c.id
    and d.other = a.other
这样写对不!

解决方案 »

  1.   

    select
      a.*,
      b.*,
      c.*,
      d.*
    from
      table1 a,
      table2 b,
      table3 c,
      table4 d,
      tabled e
    where
      b.id (+)= a.id
      and c.id (+)= a.id
      and d.oher = a.other
      and e.other1 = d.other1
    请问这个该怎么改啊,是不是改成这样
    select
      a.*,
      b.*,
      c.*,
      d.*
    from
      table1 a left join table2 b on a.id = b.id
      left join table3 c on a.id = c.id
      and table4 d inner join table5 e on d.other1 = e.other1
      and d.other = a.other