0

谁能告诉我如何做到这一点?

它看起来像一个设置。

请帮忙!

4

1 回答 1

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
于 2012-07-03T05:44:12.590 回答