Sql select data from last week

This article is tagged with: Sql select data from last week and mysql

sql select data from last week

select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();

sql select data from last week

select id from tbname
where date between date_sub(now(),INTERVAL 1 WEEK) and now();

This article is tagged with: Sql select data from last week and mysql