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))

posted @ 2019-11-08 10:49  liutoliu  阅读(4592)  评论(0编辑  收藏  举报