Pergunta

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!!

Nenhuma solução correta

Outras dicas

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
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top