Files
doris/docs/documentation/cn/sql-reference/sql-functions/date-time-functions/workofyear.md
Mingyu Chen 176e185e18 Add broker doc (#1662)
This broker document introduces the properties for different broker types.
2019-08-20 17:18:54 +08:00

425 B

weekofyear

description

Syntax

INT WEEKOFYEAR(DATETIME date)

获得一年中的第几周

参数为Date或者Datetime类型

example

mysql> select weekofyear('2008-02-20 00:00:00');
+-----------------------------------+
| weekofyear('2008-02-20 00:00:00') |
+-----------------------------------+
|                                 8 |
+-----------------------------------+

##keyword

WEEKOFYEAR