SQL ReferenceSQL 函数日期函数DAY本页总览DAYdaydescriptionSyntaxINT DAY(DATETIME date)获得日期中的天信息,返回值范围从1-31。参数为Date或者Datetime类型examplemysql> select day('1987-01-31');+----------------------------+| day('1987-01-31 00:00:00') |+----------------------------+| 31 |+----------------------------+keywordsDAY