Snippets of MySQL tips, solutions, examples, tutorials, and even benchmarks
select count(*) as cnt from log where date >= DATE_SUB(CURDATE(),INTERVAL 1 DAY);