创建 for触发器

 

use test 
go

create trigger t1
on a
for insert,update
as

insert into b(name) values('a')

在a表插入或更新数据后,在b表同时插入一条数据

相关文章: