1064 - 您的SQL语法出错;检查与MySQL服务器版本对应的手册,以便在第4行的“END $$ DELIMITER”附近使用正确的语法
CREATE EVENT event_1 ON SCHEDULE EVERY 1 WEEK STARTS CURRENT_DATE + INTERVAL 6 - WEEKDAY(CURRENT_DATE) DAY DO BEGIN
UPDATE
sonice_User
SET
update_chance = "1"; END
答案 0 :(得分:3)
使用以下代码:
Delimiter $$
CREATE EVENT event_1 ON SCHEDULE EVERY 1 WEEK
STARTS CURRENT_DATE + INTERVAL 6 - WEEKDAY(CURRENT_DATE) DAY
DO
BEGIN
UPDATE sonice_User
SET update_chance = "1";
END $$
Delimiter ;
答案 1 :(得分:0)
CREATE EVENT event_1 ON SCHEDULE EVERY 1 WEEK
STARTS CURRENT_DATE + INTERVAL 6 - WEEKDAY(CURRENT_DATE) DAY
DO
UPDATE sonice_User
SET update_chance = "1";