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