- mysql定时删除当前时间前分钟的数据
-
mysql定时删除当前时间前分钟的数据Sql代码 www.2cto.comSET GLOBAL event_scheduler = ON;delimiter $$drop event if exists e_wom_stat;create event e_wom_staton scheduleEVERY 1 daySTARTS '2013-01-01 03:00:00'ON COMPLETION PRESERVE ENABLEdobegindelete from t_wom_random_num where time<(CURRENT_TIMESTAMP()+INTERVAL -25 MINUTE);end $$delimiter ;