CREATE EVENT ON SCHEDULE AT NOW() + INTERVAL 3 DAY
mysql>
mysql> CREATE TABLE EVENTS_INVOKED
-> (EVENT_NAME VARCHAR(20) NOT NULL,
-> EVENT_STARTED TIMESTAMP NOT NULL);
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> CREATE EVENT THREEDAYS
-> ON SCHEDULE AT NOW() + INTERVAL 3 DAY
-> DO INSERT INTO EVENTS_INVOKED VALUES ('THREEDAYS', NOW());
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql> drop table EVENTS_INVOKED;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category