我正在尝试创建这样的事件:
CREATE EVENT my_schema.event1
ON SCHEDULE EVERY 1 DAY
DO
IF DAYOFWEEK(now()) = 7 THEN
INSERT INTO my_schema.events (`event`, `when`) values ('event', now());
END IF;
但标记为错误:语句不完整,应为';'在插入语句的末尾,并且在END处,IF也标记错误> END在此位置无效,期望> EOF,BEGIN ...