Mysql self deleting records?

Whenever you change some table's data (insert, update, delete), you'd delete the old data of the table. What, no one changes the data of the table? Then why would you bother deleting old stuff if no one messes around with the data?

:).

As far as I know there's no way to do this within MySQL, you could write a short bash script, perhaps even a one liner and have that run on a cron. Hacky, but it'd do the job.

Is there a way to automatically delete old records. Each record has a timestamp. I want the records with a timestamp older than 10minutes ago to be deleted.

Is there a way to do this within mysql or I need to set an external program to check the timestamps and decide whether or not it should be deleted?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions