devwebapp
devwebapp

Reputation: 135

MySQL stored procedure / Automatic delete table

I have a table on mysql that is being automatically updated. How can I define an automatic script that will:

"DELETE FROM tbl"

every week or so?

Upvotes: 0

Views: 85

Answers (1)

Sevag Akelian
Sevag Akelian

Reputation: 231

You can use CRON jobs. You can write the delete statement in a separate php file and tell the server to run that php file every week.

Upvotes: 1

Related Questions