Im new at SQL and Im currently using it for one of my projects.
I want to delete the data in a field eg. if it was not changed for 30 days.
I thought of something like this - DELETE eventLog WHERE date < (lastChange - INTERVAL 30 DAY);
- eventLog is a varchar
- lastChange is a DATE
I tried it but I think it does not really worked.
Does somone has a better way to do that?
Thanks