Answers for "how to get data between a last week in mysql"

SQL
0

how to get data between a last week in mysql

SELECT id FROM tbl
WHERE date >= curdate() - INTERVAL DAYOFWEEK(curdate())+6 DAY
AND date < curdate() - INTERVAL DAYOFWEEK(curdate())-1 DAY
Posted by: Guest on May-25-2021

Code answers related to "how to get data between a last week in mysql"

Code answers related to "SQL"

Browse Popular Code Answers by Language