Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.
返回以 1 到 31 之间的整数,表示其参数是月中第几天。
DAY( date-expression )
date-expression DATE 数据类型的日期。
SMALLINT
DAY 函数返回 1 到 31 之间的整数,与参数中表示月份中的天相对应。
SQL/2008 服务商扩充。
以下语句返回值 12。
SELECT DAY( '2001-09-12' );