Need help with sql cleanup script
Hi,
I'm trying to make a cleanup script to delete accoutns from db that aren't used for like a month.
I tried much out myself (some examples below)
Can someone teach me how to use the correct commands.
Tried to look for explanations on google but i didn't find any understandable explanations.
Would be nice if someone can advice me on this one.
Greetz
DELETE FROM user_account WHERE last_logout < 20-8-2005 8:00:00
DELETE FROM user_account WHERE last_logout < 208200580000
DELETE FROM user_account where last_login = NULL
|