select table2.* from table2,table1 where table1.filed1=table2.filed1 and table1.filed2=1

解决方案 »

  1.   

    select table2.filed1, talbe2.filed2 from table1, table2 
        where table1.filed1 = table2.filed1
          and table1.filed2 = 1
      

  2.   

    select b.* from table2 b,table1 a 
    where a.filed1=b.filed1 and a.filed2=1
      

  3.   

    select * from table2 where table2.filed1=table1.filed1 and table1.filed2=1
      

  4.   


     
      select b.* from table2 b inner join table1 a on a.filed1=b.filed1
      where  a.filed2=1