我有两个活动,其中一个被编程为每天上午9点工作,另一个是每天上午10点。问题出现在第一个事件开始时,然后第二个事件不起作用。事件Scheluder打开,我正在使用wampserver。 这是我的代码:
CREATE DEFINER=`servidoranim`@`%` EVENT `ACTTICKETS9AM`
ON SCHEDULE EVERY 9 DAY_HOUR STARTS '2018-04-01 00:00:00' ENDS '2018-05-01 00:00:00'
ON COMPLETION PRESERVE ENABLE
DO
UPDATE tickets set tickets.Estatus = 1
where tickets.Estatus = 0 and date(tickets.FechaTicket) = date(now()) and Min_Sorteo = 1 ;
第二个
CREATE DEFINER=`servidoranim`@`%` EVENT `ACTTICKETS10AM`
ON SCHEDULE EVERY 10 DAY_HOUR STARTS '2018-04-01 00:00:00' ENDS '2018-05-01 00:00:00'
ON COMPLETION PRESERVE ENABLE
DO
UPDATE tickets set tickets.Estatus = 1
where tickets.Estatus = 0 and date(tickets.FechaTicket) = date(now()) and Min_Sorteo = 2 ;
PD:抱歉我的英文