문제

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