oracle利用正则表达式判断字符串只包含数字

--oracle利用正则表达式判断字符串只包含数字
select * from bb where regexp_like(id,’^+?[1-9][0-9]*$’);

--利用Oracle函数及正则表达式进行排序 
order by to_number(regexp_substr(字段名,’[0-9]*[0-9]’,1))

猜你喜欢

转载自www.cnblogs.com/liutoliu/p/11818748.html
今日推荐