oracle sql 中利用regexp_substr 函数获取字符串中的数字(小数部分)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u014514528/article/details/79880749

废话不多说。。。直接SQL:

select regexp_substr('12.12元/小时', '\d*(\d*\.\d*)?')  from dual
这里的这个正则表达式有小数匹配小数,无小数则匹配整数。

猜你喜欢

转载自blog.csdn.net/u014514528/article/details/79880749