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