热门

最新

红包

立Flag

投票

同城

我的

发布
foools
Foools
5 年前
truefoools

hive 时间戳与日期相互转换方法

注意尽量不要使用带格式的写法,否则可能会出现不存在的日期
代码:
select from_unixtime(cast(first_enter_pool_time as int),'YYYY-MM-DD HH-mm-ss') from table_name where dt='2021-07-18' ;

修改后:
select from_unixtime(cast(first_enter_pool_time as int)) from table_name where dt='2021-07-18' ;


https://blog.csdn.net/HappyRocking/article/details/80854778

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
cv2读取jpg时,文件后缀大小写敏感,如果代码和文件后缀不匹配会报找不到图片AttributeError: 'NoneType' object has no attribute 'shape'
立即登录