SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT DATE_SUB(CURDATE(), INTERVAL DAYOFWEEK(CURDATE()) - 2 DAY) AS last_monday, DATE_SUB(CURDATE(), INTERVAL DAYOFWEEK(CURDATE()) - 8 DAY) AS next_sunday;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear