Lưu ý
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử đăng nhập hoặc thay đổi thư mục.
Cần có ủy quyền mới truy nhập được vào trang này. Bạn có thể thử thay đổi thư mục.
Applies to:
Databricks SQL
Databricks Runtime
Returns the quarter of the year for expr in the range 1 to 4. This function is a synonym for extract(QUARTER FROM expr).
Syntax
quarter(expr)
Arguments
expr: A DATE or TIMESTAMP expression.
Returns
An INTEGER.
Examples
> SELECT quarter('2016-08-31');
3