Trino(PrestoSQL)和HiveSQL的时间格式转换对比

1. 获取当前时间--hiveselect from_unixtime(unix_timestamp()); ## 2021-01-06 22:53:16 --精确到今天的时分秒select from_unixtime(unix_timestamp('2021-12-07 13:01:03'),'y
posted @ 2024-02-27 10:58  业余砖家  阅读(416)  评论(0编辑  收藏  举报