如何在phpmyadmin中自动更改字段?

时间:2018-05-14 22:28:03

标签: php mysql phpmyadmin

如何在phpmyadmin中自动更改字段?

CREATE EVENT reset
    ON SCHEDULE
      EVERY 1 MINUTE
        DO
update name_of_table
set name_of_field = 1;

或者我试过了。

CREATE EVENT myevent 
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 SECOND DO 
UPDATE locationofdriver 
   SET coordinate = 1;

0 个答案:

没有答案