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

SQL Anywhere 11.0.1 (中文) » SQL Anywhere 服务器 - SQL 参考 » 使用 SQL » SQL 函数 » SQL 函数 (P-Z)

 

QUARTER 函数 [Date and time]

从提供的日期表达式中返回一个表示某季度的数字。

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

返回值

INT

注释

有如下这些季度:

Quarter 期限(含起止日期)
1 1 月 1 日到 3 月 31 日
2 4 月 1 日到 6 月 30 日
3 7 月 1 日到 9 月 30 日
4 10 月 1 日到 12 月 31 日
标准和兼容性
  • SQL/2003   服务商扩充。

示例

以下语句返回值 2。

SELECT QUARTER( '1987/05/02' );