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