首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

oracle正则应用

2012-09-12 
oracle正则使用问题、讲A010A中的10取出 --第一个方式to_number regexp_substrSQL select to_number(regex

oracle正则使用

问题、讲A010A中的10取出 --第一个方式to_number regexp_substrSQL> select to_number(regexp_substr('A010A','[0-9]+')) from dual; TO_NUMBER(REGEXP_SUBSTR('A010A------------------------------                            10Executed in 0.016 seconds--第二个方式、regexp_replaceSQL> select regexp_replace('010','^0','') from dual; REGEXP_REPLACE('010','^0','')-----------------------------10Executed in 0.031 seconds

热点排行