相关文章推荐
长情的企鹅  ·  【oracle】 ...·  2 年前    · 
腼腆的桔子  ·  System.Threading.Tasks ...·  2 年前    · 

hive 获取上个月最后一天

在Hive SQL中,您可以使用date_sub函数和last_day函数来获取上个月的最后一天。例如:

SELECT date_sub(last_day(current_date), interval 1 month) as last_month_last_day;

这将返回上个月的最后一天作为日期类型。

  •