date_part()



接下來,讓我們使用以下查詢檢查 date_part(month,date) 函式。

查詢

default> select date_part('month', date '2016-08-11') as month; 

結果

以上查詢將生成以下結果。

month 
------------------------------- 
8.0

查詢返回指定日期中的月份。

apache_tajo_datetime_functions.htm
廣告
© . All rights reserved.