select to_char(to_timestamp(1589144400000/1000),'yyyy-MM-dd HH24-MI-SS')
注意這裏的 unix 時間戳是帶毫秒的,直接 to_timestamp 會有問題。需要除以 1000,轉換成帶秒的
select to_char(to_timestamp(1589144400000/1000),'yyyy-MM-dd HH24-MI-SS')
注意這裏的 unix 時間戳是帶毫秒的,直接 to_timestamp 會有問題。需要除以 1000,轉換成帶秒的