コンテンツにスキップ

指定した日付が属する月の最終日を返します。

func.last_day(<date>[, <unit>])
func.last_day('2024-02-15')
┌──────────────┐
│ '2024-02-29' │
└──────────────┘
LAST_DAY(<date>[, <unit>])
SELECT LAST_DAY('2024-02-15');
┌────────────┐
│ 2024-02-29 │
└────────────┘