mySQL query for selecting time periods

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?

This question and answers originated from www.stackoverflow.com
Question by (9/12/2011 3:21:28 PM)

Answer

select * from your_table
where `time` between date_sub(now(), interval 1 day) and now();
Answer by

Find More Answers
Related Topics  mysql
Related Questions