1、MySQL触发器:DROP trigger IF EXISTS hmy;//分号必须要写create trigger hmyafter insert on userfor each rowbegindelete from cat where id = 1;//分号不可以省略end;2、蠕虫复制: insert into user (id,name) select id,name from user;