【发布时间】:2020-12-26 19:59:58
【问题描述】:
我正在尝试使用以下函数将格式为“2020/08/14 12:30:42”的日期时间列转换为格式为“14-August-2020 12:30:42”的日期时间列:
select
*,
date_format(starttimecet,'%d-%M-%Y %h:%i:%s) as test
from table
虽然此函数成功执行此操作,但测试列的“14-August-2020 12:30:42”格式不再将其识别为日期时间列。有没有办法让列采用这种格式但仍将其识别为日期时间类型?
【问题讨论】:
标签: presto amazon-athena