I have a temp mysql table that holds information until checkout on an ecomm site. I would like to be able to delete the expired table data after 72 hours how would i do this?
Share
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.
Store a
datetimeat creation. Periodically (via job process for instance) run a query to delete all records wheredatetimeis less thannow - 3 daysago.I think it’s worth mentioning that unless storage volume is an issue, preserving this data may prove valuable for marketing analytics.