sql select data from last week
snippet in sql

sql select data from last week

user7617

select id from tbname

where date between date_sub(now(),INTERVAL 1 WEEK) and now();

sql select data from last week

user8403

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