I have some data in my database
this data updates everyday
i want to keep only 1 week data in my database
i dont want data older than 1 week
can anyone tell me how to delete all the data except the one week data from database
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.
Set up a cron job to check when data is older than a week. Then delete using a where clause.