select * from tablename where id='12' or id = '13'

解决方案 »

  1.   

    select * from tablename where id='12' or id = '13'
      

  2.   

    select * from table where id in (11,12,13)
      

  3.   

    select * from tablename 能查来所有表中的东西给resultset不知道楼主要的很多条是什么意思?
      

  4.   

    你先把你的目的告诉大家啊,就是为了查询??还是干什么?要是光查询select * from table where id in (11,12,13) 这个就可以
      

  5.   

    利用表与表之间的数据复制.
    insert into 成绩表(学号,数学,物理) 
     select a.学号,b.数学,b.物理 from 学生 a,成绩 b 
     where a.学号=b.学号 and a.学号in(11,12,13)
      

  6.   

    select * from table where id in (11,12,13)