雪花未识别时间格式
我在雪花中有一个以下格式的表字段。在尝试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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在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
您使用的格式模棱两可,是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