oracle查出手机号码不合法的数据
时间:2015-03-24 11:13:37
收藏:0
阅读:137
查出手机号码不合法的数据:
用正则表达式,regexp_like()。
注意:为空和null要另外判断。
select ‘13aaaaaaaaa‘ from dual
where not regexp_like(‘13aaaaaaaaa‘,‘^[1]{1}[358]{1}[0-9]{9}$‘) ;
原文:http://7883830.blog.51cto.com/7873830/1623672
评论(0)