我在下面写了这个触发器。它在以下位置产生错误:
Where UAssignment_Rights.user_id =i.user_id
from Inserted i
我希望当从用户表中删除任何行时。它还应该从 中删除Deleted User
详细信息UAssignment_Rights Table
。
在上图中Normalized Table is named as UAssignment_Rights
CREATE TRIGGER Trigger_Update ON Users
FOR DELETE
AS
set nocount on
DELETE
FROM UAssignment_Rights
Where UAssignment_Rights.user_id =i.user_id
from Inserted i
PRINT 'AFTER INSERT trigger fired.'
谁能回答我这个问题!谢谢你。