I need to delete all entries in a table where the active column is false and that the expire date being 30 days back or more from current date. But how do I add the 30 days to the timestamp in where CLAUSE? I tried this but get a malformed SQL exception
DELETE * FROM share
WHERE active = false
AND (expire + 30) > UNIX_TIMESTAMP();
I could not get timestampadd to work either.
timestamp