Mysql event error using php

后端 未结 3 1028
一向
一向 2020-11-27 08:45

I\'m trying to initiate a MySQL Event using a PHP script. It works using phpMyAdmin (although I get the same error) but not using the script. I get the following error:

3条回答
  •  时光说笑
    2020-11-27 09:05

    Try this.

         DELIMITER |
    
         CREATE EVENT myevent21222
         ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 5 MINUTE
         DO
            BEGIN
            UPDATE `team` SET `reg` = '0' WHERE `id` = '1';
            END ;
           # MySQL lieferte ein leeres Resultat zurück (d.h. null Datensätze).
         DELIMITER |
    

提交回复
热议问题