メインコンテンツまでスキップ
バージョン: 3.2

dayofmonth

説明​

日付の中の日の部分を取得し、1から31の範囲の値を返します。

date パラメータは DATE または DATETIME 型でなければなりません。

構文​

INT DAYOFMONTH(DATETIME date)

例​

MySQL > select dayofmonth('1987-01-31');
+-----------------------------------+
| dayofmonth('1987-01-31 00:00:00') |
+-----------------------------------+
| 31 |
+-----------------------------------+

キーワード​

DAYOFMONTH

Rocky the happy otterStarRocks Assistant

AI generated answers are based on docs and other sources. Please test answers in non-production environments.