Create Trigger in SQL Server

前端 未结 3 884
后悔当初
后悔当初 2020-12-11 02:29

I got lost when I wanted to create trigger using the pre-defined \"CREATE TRIGGER\" of SQL Server 2008 R2. Could you please give me a direct SQL statement that I can use to

3条回答
  •  感动是毒
    2020-12-11 02:51

    A trigger is an event-based process that is "triggered" after a table is changed in some way. This will be on DELETE, UPDATE, INSERT, and so forth. Your BEFORE and AFTER syntax will define whether to run the trigger before or after the event is committed.

    That's the short version. Check out MSDN.

提交回复
热议问题