Hive - 常用sql整理

Hive - 常用sql整理,第1张

Hive - 常用sql整理

一、实现13位时间戳转毫秒时间类型

select
    concat(t,".",substring(1611231717343,11,13))
from(
    select from_unixtime(cast(substring(1611231717343,0,10) as bigint),'yyyy-MM-dd HH:dd:ss') as t)tmp;

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5716384.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-18

发表评论

登录后才能评论

评论列表(0条)

保存