首页 » PHP教程 » phptimestamp相减技巧_Impala 时间戳相减

phptimestamp相减技巧_Impala 时间戳相减

访客 2024-12-09 0

扫一扫用手机浏览

文章目录 [+]

先用unix_timestamp将韶光转换为韶光戳,然后两个韶光相减,即可得到相减的秒数~搞定

phptimestamp相减技巧_Impala 时间戳相减

select id,(unix_timestamp(offline_time)-unix_timestamp(online_time))`在线时长/秒`From tablenamewhere id='1111'and dt='2018-08-29'

phptimestamp相减技巧_Impala 时间戳相减
(图片来自网络侵删)

相关文章

php验证字符长度技巧_短域名进化史

0x00 男人为什么要比短正常的男人都喜好比谁长,而狂热的XSSer都喜好比谁短。由于在真实的天下里,我们每每都会遇见字符长度限定...

PHP教程 2024-12-17 阅读0 评论0