MySQL触发器语法:
DELIMITER // create trigger [trigger_name] [before/after] [insert/delete/update] on [table_name] for each row begin --doing something like this insert into tab2(tab2_id) values (new.tab1_id); end;// DELIMITER;
测试通过
原文:http://www.cnblogs.com/crayygy/p/mysql-trigger-syntax.html