select * from tab
where trn1 not like '[0-9]%'这样在SqlServer下可以查询,但是oracle下就不起作用了,请大侠指点

解决方案 »

  1.   

    select  regexp_substr(trnl,'[^[0-9]]+')from tab
      

  2.   

    select 1 from dual where regexp_like('adfasd1111', '^[^0-9]+');
    select 1 from dual where regexp_like('222adfasd1111', '^[^0-9]+');
      

  3.   

    [^[0-9]]+
     oracle会有一定的变化,^开头,+设置后面的字符数量
      

  4.   

    select * from table where substr(col,1,1) not between '0' and '9'