I need to query to get rows where a timestamp was after exactly 4 days ago this time.
For example if I run the query at 1pm on June 6, 2012 it should select rows where the date is after 1pm on June 2, 2012. How do I do this?
SELECT * FROM mytable WHERE created_at < /* 4 days ago this time */;
believe it or not, it’s super-easy.