Select a.id,a.a1,b.b1,c.c1
from a表 a
Left join b表 b on a.id = b.id
Left join c表 c on a.id = c.id

解决方案 »

  1.   

    select a.*,b.b1,c.c1 from a Left join b on a.id = b.id Left join c on a.id = c.id
      

  2.   

    好快啊,刚才一急没说清楚,现在没有C表,C表其实是从 E表和F表里查询出来的,假设查询是select e.id,f.f1 from E e,F f where e.id=f.id请各位能不能把上面的查询补全
      

  3.   

    Select a.id,a.a1,b.b1,c.f1
    from a表 a
    Left join b表 b on a.id = b.id
    Left join (select e.id,f.f1 from E e,F f where e.id=f.id) c on a.id = c.id
      

  4.   

    select a.*,b.b1,c.f1 from a Left join b on a.id = b.id Left join (select e.id,f.f1 from E e,F f where e.id=f.id) c on a.id = c.id