Hi Y'all,
I'm having a bit of a confusion:
delete from ibf_posts where (Post_date - now()) < 212460*60
or
delete from ibf_posts where (now()-Post_date) > 1814400
Shouldn't the answer be more like this:
3 weeks ago's date = Threshold = (now() - 1814400)
delete from ibf_posts where (now() - 1814400) < Post_date
I'm always good at messing the dates limit and now I'm kinda lost:
Which one of the two (or they may even produce the same result) will keep my msgs that only 21 days old and remove anything that is Older than 21 days?
When I ran:
delete from ibf_posts where (now()-Post_date) > 1814400
I ran it and was confused because I think it earased more than I expected,..or I maybe just confused.
Can someone please verify what am I left with after running this?
Thanks,
-Alon.