The function DAYOFWEEK() in mysql that converts the date to the day of the week, for example, 2017-04-26 is Wednesday, and the result is 4

For example, 2017-04-26 is Wednesday, the result is 4

Sunday--1

Monday--2

Tuesday--3

Wednesday--4

Thursday--5

Friday--6

Sunday--1

select DAYOFWEEK('2017-04-26') ;

result is 4

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324711372&siteId=291194637