TRIGGER BASIC OPERATION
IF EXISTS (SELECT 1 FROM inserted)
BEGIN
IF EXISTS (SELECT 1 FROM deleted)
SET @action = 'UPDATE';
END
ELSE
SET @action = 'INSERT';
End
SET @action = 'DELETE';
No comments:
Post a Comment