May 2005
Intermediate to advanced
352 pages
14h 39m
English
WEEKOFYEAR( )
WEEKOFYEAR(date)This function returns the calendar week of the year for the given date. This function was added in Version 4.1.1 of MySQL.
SELECT CURDATE( ) AS Date,
WEEKOFYEAR(CURDATE( )) AS Week;
+------------+------+
| Date | Week |
+------------+------+
| 2005-01-11 | 2 |
+------------+------+Read now
Unlock full access