Update mysql table every twenty four hours automatically

前端 未结 2 1401
栀梦
栀梦 2021-01-22 20:41

I was wondering how I could set up a script (I\'m assuming it would be a cron job) that would reset a field in a mysql table every twenty four hours back to zero. I would want i

2条回答
  •  日久生厌
    2021-01-22 20:58

    What about using the MySql event scheduler itself?

    http://dev.mysql.com/doc/refman/5.6/en/events-overview.html

提交回复
热议问题