慕哥6287543
用oracle的正则函数regexp_instr就行了。select regexp_instr('65','[1-9][0-9]?$') from dual ;1234567891011121314151617sys@STARTREK> select regexp_instr('65','[1-9][0-9]?$') from dual ; REGEXP_INSTR('65','[1-9][0-9]?$')--------------------------------- 1 sys@STARTREK> select regexp_instr('0','[1-9][0-9]?$') from dual ; REGEXP_INSTR('0','[1-9][0-9]?$')-------------------------------- 0 sys@STARTREK> select regexp_instr('1d','[1-9][0-9]?$') from dual ; REGEXP_INSTR('1D','[1-9][0-9]?$')--------------------------------- 0