create table test(
id int identity (1,1) not null primary key,
someint int,
triggerresult int
)
go
create trigger testtrigger on test after insert, update as
update test
set triggerresult = 2 * i.someint
from test t
join inserted i
on i.id = t.id
go
insert into test (someint)
select 5 union all
select 100
select * from test
|