this_month() 関数

this_month() 関数は、指定した日付の月の最初の日を判別します。

Netezza Performance Serverの'date_trunc()関数を使用して、月の最初の日の値を決定することもできます。

構文

this_month() 関数の構文は次のとおりです。
date = this_month(date input);

input の値には、日付を指定します。

戻り

この関数は、指定した月の最初の日を表す日付を返します。

select this_month('1996-2-29');
 THIS_MONTH
------------
 1996-02-01
(1 row)