Impala 有没有办法检查字符串是否为数字?
就像 is_numeric
是 SQL 吗?
最佳答案
这对我有用:
select
case
when cast(mycol as double) is not null
then 'numeric'
else 'string'
end
from mytable
关于sql - Impala - 检查字符串是否是数字,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51070219/