谁能告诉我如何实现这一目标?
它看起来像一个设置。
请帮忙!
答案 0 :(得分:0)
CREATE TRIGGER trgAfterDelete ON <yourFirsttable> AFTER DELETE
AS
select @blah = <yourCol1>, @blih = <yourCold2> from deleted;
insert into <YourSecondTable>(..., blah, blih)
values(..., @blah, @blih);
GO