MySQL 触发器 语法实例
时间:2021-07-01 10:21:17
帮助过:3人阅读
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;
测试通过
MySQL 触发器 语法实例
标签: