MySQL触发器

delimiter |

create trigger t1_insert before insert on t1 for each row

begin

insert into t2 values(1,'2','cc');

end;

|

delimiter;//将分隔符置回分号

posted on 2014-07-13 23:02  pushStack  阅读(144)  评论(0编辑  收藏  举报