select * from table where substr()='01'

解决方案 »

  1.   

    select * from 表 where  substring(列,3,2)='01'
      

  2.   

    我可不可以这样用,
    select * from table where 列名.substr(3,4)='01'
      

  3.   

    select * from table where 字段 like '01' not exists select * from table where substr()='01'
      

  4.   

    select 
      * 
    from 
      tabname 
    where 
      substring(
                col,                        --被查找的字段 
                (len(col)/2-len('01')/2) ,  --被查找的起始位置
                len('01')                   --被查找的长度
                ) = '01'
      

  5.   

    决定正确,试过了
    SELECT          *
                                FROM            table
                                WHERE           substring(字段,3,2) = '01'