select * from your_tab where id=11 or trim(id)='11';

解决方案 »

  1.   

    select * from tab where id=11select * from tab where id=(select max(id) from tab)
      

  2.   

    不行,我忘了说,不可借助id,能否只在“学号 ”这个字段上打主意,有没有什么SQL的函数??
      

  3.   

    substr(字段名,begainIndex,endIndex) 
      

  4.   

    需求不明!
    根据学号的什么要求选择呢?
    select * from table where substr(学号,11,2) = '99'
      

  5.   

    select * from table where rowner=2
      

  6.   

    可以用oracle自己带的rowid
    不过,我用 了几次rowid取出来的记录都不是我想要的,我也想求教一下
    如果用rownum,好象只能取出一条记录,而且这一条记录一般都是你sql查询出来的第一条记录呀!?!?!?
      

  7.   

    用select * from table where rowner=2这句,应该没错啊!
      

  8.   

    问题解决了,谢谢各位!!两种办法:
    substr(字段,开始位置,长度);
    字段 like "___XX%"