PROBLEM HAS BEEN SOLVED
ANSWER:
delete from `[table name]` where [row name] > AddTime( CurTime(), '14400 hour' )
This instantly deletes anything that is older than 10 days OLD.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
delete from
journalwhere journal_date < date_sub(curdate(),interval 5 day)it can use index on column
journal_datebut “datediff(now(), journal_date) > 5 ” can’t use index on column
journal_date