Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回给定日期的月份。
MONTH( date-expression )
date-expression DATE 类型的值。
SMALLINT
对应于给定日期的月份,返回的值是 1 到 12 之间的某个数字。
以下语句返回值 7:
SELECT MONTH( '1998-07-13' );