DELIMITER $$
CREATE DEFINER=`root`@`%` EVENT `test`
ON SCHEDULE EVERY 1 DAY STARTS '2019-02-12 00:00:00' #从“2019-02-12 00:00:00”开始,每1天准时一次
ON COMPLETION NOT PRESERVE ENABLE #完成时不保留启用(无结束时间)
DO
begin
start transaction; #开始事务
INSERT INTO `imss`.`testtb` (`datet`) VALUES (now());
commit; #提交事务
end$$
DELIMITER ;