1、hive取得当前日期时间:
-- 1.1) 取得当前日期:
select current_date();

-- 1.2) 取得当前日期时间:
select current_timestamp();

原文转自:hive日期函数 - 九命猫幺 - 博客园 (cnblogs.com)
https://www.cnblogs.com/yongestcat/p/15655580.html
这篇文章介绍了如何在Hive中使用内置函数获取当前日期(current_date)和日期时间(current_timestamp),是初学者快速上手Hive日期操作的基础指南。
select current_date();

select current_timestamp();

原文转自:hive日期函数 - 九命猫幺 - 博客园 (cnblogs.com)
https://www.cnblogs.com/yongestcat/p/15655580.html
8938

被折叠的 条评论
为什么被折叠?