WEEKOFYEAR(date): Get the week of the year that the day is
SELECT WEEKOFYEAR(SYSDATE()) SELECT WEEKOFYEAR(‘2015-01-10')
-> 2 -> 2
The above is the detailed content of How to use WEEKOFYEAR function in MySQL. For more information, please follow other related articles on the PHP Chinese website!