SQL、PRESTO使用to_unixtime時間函數計算兩個‘年月日時分秒’時間戳的時間間隔

例如 a.apply_time 是2020-05-11 13:54:27 b.su_time是2020-03-25 11:20:44 怎麼計算兩個‘年月日時分秒’時間戳的時間間隔呢? SELECT to_unixtime(cast(a.apply_time as timestamp)) - to_unixtime(cast(b.su_time as timestamp)) as intervel
相關文章
相關標籤/搜索