雪花未识别时间格式

发布于 2025-02-10 16:19:15 字数 136 浏览 0 评论 0原文

我在雪花中有一个以下格式的表字段。在尝试to_date(),to_timestamp()函数时,其错误消息的误差为-Timestamp'8/05/2018 9:03:53 pm'尚未识别。

格式 - '8/05/2018 9:03:53 PM'

I have a table field in below format in snowflake. While trying to_date(), to_timestamp() function, its erring out with error message as - Timestamp '8/05/2018 9:03:53 PM' is not recognized.

Format - '8/05/2018 9:03:53 PM'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

北笙凉宸 2025-02-17 16:19:15

在TO_TIMESTAMP中指定格式如下:

to_timestamp('8/05/2018 9:03:53 PM','mm/dd/yyyy hh12:mi:ss am') - 假设MM/dd/yyyyy

to_timestamp('8/05/2018 9:03:53 pm','dd/mm/yyyy hh12:mi:ss am') - 假设DD/mm/mm/yyyy

Specify the format in the TO_TIMESTAMP as follows:

to_timestamp('8/05/2018 9:03:53 PM','MM/DD/YYYY HH12:MI:SS AM') -- assumes MM/DD/YYYY

or

to_timestamp('8/05/2018 9:03:53 PM','DD/MM/YYYY HH12:MI:SS AM') -- assumes DD/MM/YYYY

暖伴 2025-02-17 16:19:15

您使用的格式模棱两可,是5月8日还是8月5日?

由于上述,我们不支持该日期格式。

有关更多信息,请有一个查看在这里< /a>

The format you are using is ambiguous, is it 8th May or August 5th?

Due to the above we don't support that date format.

For more information have a look here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文