ALTER EVENT test
ON SCHEDULE EVERY 10 MINUTE STARTS '2013-08-29 00:00:00' + INTERVAL 1 WEEK;
事件test 从指定时间+1周后开始10分钟执行一次
ALTER EVENT test
ON SCHEDULE EVERY 10 MINUTE ENDS '2022-09-21 00:00:00';
事件test 从指定时间结束(要带上执行频率,不知为啥)
ALTER EVENT test
ON SCHEDULE EVERY 10 MINUTE ENDS CURRENT_TIMESTAMP + INTERVAL 1 WEEK;
指定时间也可以用当前时间CURRENT_TIMESTAMP
ALTER EVENT test
ON SCHEDULE EVERY 12 HOUR STARTS CURRENT_TIMESTAMP + INTERVAL 30 MINUTE ENDS CURRENT_TIMESTAMP + INTERVAL 4 WEEK
组合,相当于「每十二个小时,从现在起三十分钟后开始,并于现在起四个星期后结束」
参考:
https://jingyan.baidu.com/article/0320e2c1d2af111b87507bc6.html