Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use WEEKDAY in MySQL

Shulou Source: shulou.com Published: 2022-06-01 02:43:41 10月03日 Update

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.

Tags: Week article more good practical content serial number article calendar is in knowledge reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple Shulou Technology MySQL Redmi Shulou Tech Info