1 Answer
- Newest
- Most votes
- Most comments
0
【以下的回答经过翻译处理】 尝试使用 date_parse 或 from_iso8601_date 函数。
select date_parse(substr('2022-11-16T00:00:00.000Z',1,10),'%Y-%m-%d')
或者尝试下面的函数
select from_iso8601_date(substr('2022-11-16T00:00:00.000Z',1,10))
关于所有函数的完整列表,请根据您所使用的 Athena 引擎版本查看参考文档 https://docs.aws.amazon.com/athena/latest/ug/functions.html 参考链接: https://trino.io/docs/current/functions/datetime.html?highlight=date_parse#date_parse
Relevant content
- asked 2 years ago
- Accepted Answerasked a year ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 4 months ago