Вопрос

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

Нет правильного решения

Другие советы

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
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top