Question

to everyone I am little bit of struggling with MySQL query i need to get list of Saturdays list for the past 5 years and i am confused so please help me!!

Pas de solution correcte

Autres conseils

You can use WEEKDAY() function.

Returns the weekday index for date (0 = Monday, 1 = Tuesday, … 6 = Sunday). 

This query will return all Saturday in your datetable date column = MySQL datetime

SELECT * FROM `datetable` WHERE  WEEKDAY(`dates`) = 5
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top