Hello,
I am a beginner with sql and have created a trigger for daily transactions for insert and update like :
if (condition)
begin
insert into customerhist(op eration) values('insert' )
end
else
begin
insert into customerhist(op eration) values('update' )
end
go.
I wanted to know which of the insert or update query is executed after this trigger is fired, is there any return type or return variable or flag variable I can use to know this ??
Please can someone help me with this.
Happy Thoughts,
Sonaul.
Sonaul@gmail.co m
I am a beginner with sql and have created a trigger for daily transactions for insert and update like :
if (condition)
begin
insert into customerhist(op eration) values('insert' )
end
else
begin
insert into customerhist(op eration) values('update' )
end
go.
I wanted to know which of the insert or update query is executed after this trigger is fired, is there any return type or return variable or flag variable I can use to know this ??
Please can someone help me with this.
Happy Thoughts,
Sonaul.
Sonaul@gmail.co m
Comment