Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

DATE_SUB(WEEK) specifying date mode

$
0
0
Really simple question I want to change the date mode but cannot figure out how to do it while using date_sub. I know the below is wrong, so how do I do it?

Code:

SELECT meetings.date
FROM meetings
WHERE WEEK(meetings.date,1) = DATE_SUB(WEEK(CURDATE(),1,INTERVAL 1 WEEK))


Viewing all articles
Browse latest Browse all 13329

Trending Articles