SQL SERVER trigger 中的 SQL 語法範例

update

update a set c1=i.c1 from inserted i,table1 a where i.id=a.id;

insert

insert into table1 (c1) select c1 from inserted;


inserted 代表新增或更新的資料列表格

留言

熱門文章