I am trying to come up with a way to delete entries that are x days old. Right now, every new entry has a time stamp by doing the following in the row default:
Column name: created, Not Null and on the default section I have
CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
So I was wondering what Delete query i could use in my app.connection to delete entries that are 2 days old. It is a bit confusing because it provides seconds, as I initially thought I could just get the current data-2 and delete all entries older than that.
Thanks