CREATE PROCEDURE test1 ()
BEGIN
INSERT INTO `user`(bookname) VALUES(‘asdf‘);
END;
CREATE EVENT if not exists e_test
on schedule every 30 second
on completion preserve
do call test1();
set global event_scheduler=1;
alter event e_test ON COMPLETION PRESERVE DISABLE;
alter event e_test ON COMPLETION PRESERVE ENABLE;
时间: 2024-10-06 07:03:16