How to use WEEKDAY in MySQL
This article will explain in detail how to use WEEKDAY in MySQL. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
WEEKDAY (date)
SELECT WEEKDAY ('2016-01-16') SELECT WEEKDAY ('2016-01-16 00 WEEKDAY 00')-> 5 (indicates that returning WEEKDAY is the serial number of the week. Western calendars usually start with Sunday and count with 0, so remember: 0 = Monday, 1 = Tuesday,... 5 = Saturday) this is the end of the article on "how to use WEEKDAY in MySQL". Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please share it for more people to see.