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.