周一在哪一年算哪一年
-
YEARWEEK: select yearweek('2016-01-03',1);
-
DATE_FORMAT同样效果的写法: SELECT date_format( '2016-01-03 09:16:18', '%x-%v' )
参考链接
https://stackoverflow.com/questions/40991482/mysql-date-format-converts-the-first-week-of-2016-into-the-last-week https://dev.mysql.com/doc/refman/5.5/en/date-and-time-functions.html#function_date-format