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 16.1 and above
Returns the three-letter English acronym for the day of the week for the given date.
Syntax
dayname(expr)
Arguments
expr: ADATEorTIMESTAMPexpression.
Returns
A STRING.
One of: 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'.
Examples
> SELECT dayname(DATE'2024-11-01' + CAST(offset AS INT)) AS days
FROM range(8) AS t(offset);
Fri
Sat
Sun
Mon
Tue
Wed
Thu
Fri