select * from t
where substr(col,3) in (09,10)

解决方案 »

  1.   

    --用'09','10'会是严格点:
    select * from t
    where substr(col,3) in ('09','10')
      

  2.   

    JeromeLiu(烛光) 能解释一下substr(col,3)吗?
      

  3.   

    通过substr系统函数取得4位数字中的后两位
    在通过查询关键字in(等同与 .. or .. or..)来限制结果。
      

  4.   

    select  *  from  t  
    where  substr(col,3)  between 9 and 10;
      

  5.   

    substr的用法:16:22:08 SQL> select substr('1234',3) from dual;SU
    --
    34已用时间:  00: 00: 00.31
    16:24:02 SQL> select substr('1234',3,1) from dual;S
    -
    3已用时间:  00: 00: 00.31
    16:24:10 SQL> 
      

  6.   

    详细的参考请访问:
    http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/functions119a.htm#SQLRF06114