SQL 手册SQL 函数日期函数month本页总览monthmonthdescriptionSyntaxINT MONTH(DATETIME date)返回时间类型中的月份信息,范围是1, 12参数为Date或者Datetime类型examplemysql> select month('1987-01-01');+-----------------------------+| month('1987-01-01 00:00:00') |+-----------------------------+| 1 |+-----------------------------+keywordsMONTH