Sqlserver
 sql >> Datenbank >  >> RDS >> Sqlserver

wie man mit after insert trigger in sql server 2008 arbeitet

create trigger tri_inserts on a
after insert
as
set nocount on

insert into b (id, name)
    SELECT id, name FROM INSERTED
GO