/ Published in: SQL
Expand |
Embed | Plain Text
CREATE TRIGGER [dbo].[TriggerName] ON [dbo].[TableName] FOR UPDATE AS // declare id variable first; DECLARE @ID int //SET it IN the begin section. BEGIN SET @ID = (SELECT IssueID FROM inserted) END *inserted IS TABLE FROM WHERE we are querying the last updated id.
You need to login to post a comment.
