【问题标题】:Finding out the data type of a value in Presto在 Presto 中找出值的数据类型
【发布时间】:2017-10-26 18:54:57
【问题描述】:

我从嵌套映射中获取值,很难弄清楚每个值是什么数据类型。有没有typeof 函数可以告诉我每个值的数据类型?

【问题讨论】:

标签: sql presto trino


【解决方案1】:

是的,有typeof函数:

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

【讨论】:

    猜你喜欢
    • 2021-11-19
    • 2021-05-25
    • 2020-06-17
    • 1970-01-01
    • 2022-10-08
    • 1970-01-01
    • 1970-01-01
    • 2020-07-15
    • 1970-01-01
    相关资源
    最近更新 更多