/ Published in: SQL

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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.
Comments
