Issue regarding update trigger in SQL Server -
i creating trigger after update on table.
the table contains c1, c2, c3, c4 columns , these columns c1, c2, c3, c4 independent of each other
trigger supposed "if update happens on c4 column.. trigger should invoked , values in c1 column should retrieved , modified"
how can handle scenario?
thanks in advance
try this. update kind of tricky little feature provides quick access asking for.
update ut set ut.c1 = case when update(c4) i.c4 else ut.c1 end underlyingtable ut inner join inserted on (ut.primarykey = i.primarykey)
Comments
Post a Comment