Scheduling an event every day at a given time
题
I want my event to run everyday at 00:20. I am confused in scheduling of the time. Should I be using the first option or the second one?
Option 1
CREATE EVENT my_event
ON SCHEDULE
EVERY 1 DAY
STARTS '2014-04-30 00:20:00' ON COMPLETION PRESERVE ENABLE
DO
# My query
Option 2
CREATE EVENT my_event
ON SCHEDULE
AT ('2014-04-30 00:20:00'+ INTERVAL 1 DAY) ON COMPLETION PRESERVE ENABLE
DO
# My query
没有正确的解决方案
不隶属于 dba.stackexchange