Create EVENT event_test_name ON SCHEDULE EVERY 1 MINUTE STARTS 2010-09-02 12:10:15 ON COMPLETION NOT PRESERVE ENABLE
DO
SET Total=-1;
SET Total = (SELECT COUNT(0) FROM schema1.table1);
SELECT Total;
IF Total >50000 THEN
insert into schema2.table1 (column1)
select schema1.table1.column1 from schema1.table1;
end if;
这是活动时间表,一是我方言的书写,但如果国家网的话,任何帮助都将非常有用,则会把不正确的辛迪加线靠近。
感谢。