create trigger 触发器名 before|after delete|insert|update on 表名 for each row begin 触发语句 end;
//创建触发器,触发器名为 audit_log create trigger audit_log //触发器执行在insert操作之后 after insert //监视employees_test表 on employees_test for each row begin //触发触发器后执行将记录插入到audit表中 insert into audit values(new.id,new.name); end;