Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 446 Bytes

File metadata and controls

28 lines (19 loc) · 446 Bytes

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