我不明白为什么当我尝试创建事件时我的 sql 返回此错误..
错误:# MySQL returned an empty result (ie no rows).
代码:
USE my_database;
CREATE EVENT IF NOT EXISTS `remove_inactives`
ON SCHEDULE EVERY 15 MINUTE
ON COMPLETION PRESERVE
ENABLE
DO
DELETE FROM `inactive`
WHERE `inactive` < DATE_SUB(NOW(), INTERVAL 15 MINUTE)
;