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?

有帮助吗?

解决方案

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top