Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (中文) » UltraLite - 数据库管理和参考 » UltraLite SQL 参考 » UltraLite SQL 函数 » SQL 函数 (A-D)

 

DAY 函数 [Date and time]

返回 1 到 31 之间的一个整数。

语法
DAY( date-expression )
参数
  • date-expression   日期。

返回值

SMALLINT

注释

整数 1 到 31 对应于日期中的月号。

标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回值 12。

SELECT DAY( '2001-09-12' );