Mysql 定时任务

--每天定时00:00:00更新SQL


drop
EVENT `Reset_tbidentity`; CREATE event if not exists `Reset_tbidentity` ON SCHEDULE EVERY 1 DAY STARTS concat(current_date,' 00:00:00') ON COMPLETION PRESERVE ENABLE DO UPDATE tbidentity SET Identity =0; alter event Reset_tbidentity ON COMPLETION PRESERVE ENABLE;

 

你可能感兴趣的:(mysql)