我试图在MySQL事件管理器中保存一个事件,如下所示。
我可以通过PHPMyAdmin成功添加它,但是使用ZF2 TAblegateway没有快乐..
任何解决方案 - 直接通过php现在都可以接受..
$this->tableGateway->getAdapter()->driver->getConnection()>execute($eventSql);
$ eventSql =
"DELIMITER |
CREATE EVENT slacheckevent9
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 2 MINUTE
DO
BEGIN
UPDATE sla AS T1,
(SELECT eventdata FROM eventdata WHERE eventname = 'CUSTOMER
CONTACTED' AND instructionid=3) AS T2
SET T1.actualtime=T2.eventdata WHERE T1.id = 9;
UPDATE sla
SET slasuccess= CASE
WHEN actualtime <= duetime THEN true
ELSE slasuccess
END
WHERE id = 9
;
END |
DELIMITER ;";
答案 0 :(得分:0)
简单地:
EditText term_txt