版权声明:本文为博主原创文章,转载请说明出处 https://blog.csdn.net/u010002184/article/details/89280228
select FROM_UNIXTIME( CAST(1552961157037 / 1000 AS BIGINT) ,'yyyy-MM-dd HH:mm:ss') AS report_tm -- 2019-03-19 10:05:57
select CAST(1552961157037 / 1000 AS BIGINT) -- 1552961157
select cast(1 as double) -- 1.0
select from_unixtime(cast(1552961157037/1000 as bigint),"yyyy-MM-dd HH:mm:ss") AS report_tm -- 2019-03-19 10:05:57
select from_unixtime(cast(1552961157037 as bigint),"yyyy-MM-dd HH:mm:ss") AS report_tm -- 51181-05-19 19:10:37
select from_unixtime(1552961157,"yyyy-MM-dd HH:mm:ss") AS report_tm -- 2019-03-19 10:05:57
select from_unixtime(unix_timestamp(),"yyyy-MM-dd HH:mm:ss") AS report_tm -- 2019-04-12 17:57:10
select to_date('2011-12-08 10:03:01') -- 2011-12-08
end