跳转到内容

返回日期中的月内日,是 DAY 的别名。

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