MONTH(date) 用于返回 date 对应的月份
mysql> SELECT MONTH(‘2017-02-23‘); +---------------------+ | MONTH(‘2017-02-23‘) | +---------------------+ | 2 | +---------------------+
时间: 2024-10-10 00:55:37
MONTH(date) 用于返回 date 对应的月份
mysql> SELECT MONTH(‘2017-02-23‘); +---------------------+ | MONTH(‘2017-02-23‘) | +---------------------+ | 2 | +---------------------+