AWS Athena 将秒数转换为 HH:mm:ss
AWS Athena Convert Seconds to HH:mm:ss
我如何在 AWS Athena 中将秒数转换为 HH:mm:ss - 这类似于 MySQL
中的 SELECT SEC_TO_TIME
如果你是 运行 Presto,它支持 time
数据类型,你可以这样做:
select time '00:00:00' + no_seconds * interval '1' second
... 其中 no_seconds
是您要转换的秒数。
我如何在 AWS Athena 中将秒数转换为 HH:mm:ss - 这类似于 MySQL
中的 SELECT SEC_TO_TIME如果你是 运行 Presto,它支持 time
数据类型,你可以这样做:
select time '00:00:00' + no_seconds * interval '1' second
... 其中 no_seconds
是您要转换的秒数。