2017-05-26 11 views
3

我从嵌套地图获取值,很难确定每个值的数据类型。有没有可以告诉我每个值的数据类型的typeof函数?查找Presto中的值的数据类型

+0

https://prestodb.io/docs/current/functions/conversion.html也许这可以帮助。 – skadoosh

回答

1

是的,有typeof功能:

presto> select typeof(1), typeof('a'); 
    _col0 | _col1 
---------+------------ 
integer | varchar(1) 
(1 row)