林依婷出国了吗:在SQL 2000中加入触发器不能实时更新如何处理?

来源:百度文库 编辑:神马品牌网 时间:2024/05/12 13:58:08
CREATE TRIGGER RDRECORS_1 ON dbo.rdrecors
for insert,update
update rdrecors
set iquantity=cdefine27 where cdefine27>0

CREATE TRIGGER RDRECORS_1
ON dbo.rdrecors
FOR AFTER UPDATE
AS
IF UPDATE([cdefine27])
BEGIN
update rdrecors
set iquantity=cdefine27 where cdefine27>0
END