【问题标题】:What is the alternative syntax for TO_CHAR() in Presto SQL?Presto SQL 中 TO_CHAR() 的替代语法是什么?
【发布时间】:2020-07-03 05:00:51
【问题描述】:

我遇到了这个有趣的 postgresql 日期转换表,我想知道这种日期模式语法是否也可以在 presto 中使用。它可能有效,也可能无效,任何熟悉这个的人?

【问题讨论】:

  • 你检查date_format Presto function了吗?
  • 嗨,是的,只是想知道 to_char() 是否适用于 presto!
  • 没有。添加此作为答案。

标签: presto


【解决方案1】:

可通过date_format() Trino (formerly Presto) function 获得等效功能

to_char 函数在 Presto 中不存在。 文档包含list of builtin Presto functions。如有疑问,您可以使用 SHOW FUNCTIONS 语句获取所有可用函数的列表。

【讨论】:

    猜你喜欢
    • 2020-11-23
    • 2020-08-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-22
    • 2020-10-27
    • 1970-01-01
    相关资源
    最近更新 更多