只能告诉你
table1.fields2=table2.field2相当于内连接
table1.fields3=table2.field3(+)相当于left join

解决方案 »

  1.   

    select table1.*,table2.a
    from table1 a, left table 2 b, on a.fields2=b.fields
    where table1.fields2=table2.field2
    and   table1.fields1=条件1;
      

  2.   

    select table1.*,table2.a
    from table1 right join table2
    on table1.fields1=条件1
    and table1.fields2=table2.field2
    and table1.fields3=table2.field3
      

  3.   

    beckhambobo(beckham)你解释的对,但你能用JOIN形式表达出来吗,我一定给分的,再加分也行。
      

  4.   

    select table1.*,table2.a
    from table1 left join table2
    on table1.fields1=条件1
    and table1.fields2=table2.field2
    and table1.fields3=table2.field3
      

  5.   

    select T1.* , T2.a
     from table1 T1 , table2 T2
    where T1.fields1 = 条件1
      and T1.fields2 = T2.field2
      and T1.fields3 = T2.field3 
    union
    select T1.* , T2.a
     from table1 T1 , table2 T2
    where T1.fields1 = 条件1
      and T1.fields2 = T2.field2
      and T2.fields3 is null