hive中如何判断字符串是否是数字
1. 通过 nvl函数实现判断字符串是否是数字SELECT nvl('1.x'+0,null) is not null; falseSELECT nvl('1'+0,null) is not null; true2. 通过正则匹配判断select '123456' rlike '^\d+$' ; true ;select '123456a' rlike '^\d+$' ; false;...
原创
2021-02-19 18:55:35 ·
10792 阅读 ·
0 评论