add_months(日期日期或时间戳,整数月份)



现在让我们使用以下查询检查add_months(date,month) 函数。

查询

default> select add_months(date '2016-08-11',1) as months;  

结果

以上查询将生成以下结果。

months 
------------------------------- 
2016-09-11 00:00:00

在此处,从给定日期添加一个月。

apache_tajo_datetime_functions.htm
广告
© . All rights reserved.