跳转到内容

返回日期中的月份。

func.month(<date>)
func.month('2024-06-15')
┌───┐
│ 6 │
└───┘
MONTH(<date>)
SELECT MONTH('2024-06-15');
┌───┐
│ 6 │
└───┘