SET GLOBAL event_scheduler = ON;
。然后使用CREATE EVENT
语句定义事件,如:,,``sql,CREATE EVENT my_event,ON SCHEDULE EVERY 1 HOUR,DO,BEGIN, -定时执行的SQL语句,END;,
``SET GLOBAL event_scheduler = ON;
。然后使用CREATE EVENT
语句定义事件,如:,,``sql,CREATE EVENT my_event,ON SCHEDULE EVERY 1 HOUR,DO,BEGIN, -定时执行的SQL语句,END;,
``sql,TRUNCATE TABLE table_name;,
`,要导出某张表的结构,可以使用以下命令:,
`sql,SHOW CREATE TABLE table_name;,
``Powered By Z-BlogPHP 1.7.3