select table1.No,table1.Name,table2.Other
  from table1 left join table2 on table1.NO = table2.NO
 where table1.N0='2'

解决方案 »

  1.   

    select table1.No,table1.Name,table2.Other
      from table1 left join table2 on table1.NO = table2.NO
      

  2.   

    select table1.No,Name,Other from table1, table2 where table1.id *= talbe2.id
      

  3.   

    select a.NO ,isnull(a.Name,'') from 
    (select table1.No,table1.Name,table2.Other
      from table1 left join table2 on table1.NO = table2.NO) a
      

  4.   

    select table1.no,table1.name,table2.other from table1,table2 where table1,no=table2.no 如果加条件的话,只需要在此语句后加上
    and table1.no='?' or table2.no='?'
      

  5.   

    打错了一点,应该是
    select table1.no,table1.name,table2.other from table1,table2 where table1.no=table2.no 如果加条件的话,只需要在此语句后加上
    and table1.no='?' or table2.no='?'
      

  6.   

    select a.No,a.Name,b.Other from table1 a, table2 b where a.id =b.id
      

  7.   

    select a.No,a.Name,b.Other from table1 a, table2 b where a.no =b.no and a.N0='2'