这是这个问题的继续:Insert data into a table with a foreign key SQL 我需要创建一个触发器,用于在向表中插入一行之后更新计数器变量。但是,在运行脚本之后,触发器似乎不起作用。另外,如果我已经创建了这个触发器,我如何重用它?INTO Item
SET SQL_SAFE_UPDATES
从我的研究中,我看到了推荐的复合触发器,但我不确定。我也尝试了bgin语句之前的杂注autonomous_transaction;,但遇到了“死锁错误”。create or replace trigger Update_Salary for each row月20日)它应该将TBL_EMPDETAILS (empdetails_id,EMP_SALARY)更新为(100,$500)
我在一张桌子上有一个触发器,就像这样: ON [dbo].[MyTable]ASdeclare @number bigintdeclare @flag intselect @number=number,@body=body,@flag=flag from inserted
begin
insert into temptable(3018440225,