Presto SQL 中 TO_CHAR() 的替代语法是什么?
What is the alternative syntax for TO_CHAR() in Presto SQL?
我遇到了这个有趣的 postgresql 日期转换 table,我想知道这种日期模式语法是否也可以在 presto 中使用。它可能有效也可能无效,有人熟悉吗?
可通过 date_format()
Trino (formerly Presto) function
获得等效功能
Presto 中不存在 to_char
函数。
文档包含 list of builtin Presto functions. When in doubt, you can get a list of all the functions available using the SHOW FUNCTIONS
语句。
我遇到了这个有趣的 postgresql 日期转换 table,我想知道这种日期模式语法是否也可以在 presto 中使用。它可能有效也可能无效,有人熟悉吗?
可通过 date_format()
Trino (formerly Presto) function
Presto 中不存在 to_char
函数。
文档包含 list of builtin Presto functions. When in doubt, you can get a list of all the functions available using the SHOW FUNCTIONS
语句。