I have a timestamp field and I want to select * where time [is within the last 24 hours]
What is the correct query for this?
I have a timestamp field and I want to select * where time [is within the last 24 hours]
What is the correct query for this?
select * from your_table
where `time` between date_sub(now(), interval 1 day) and now();