SQL Server Trigger switching Insert,Delete,Update

后端 未结 5 1903
慢半拍i
慢半拍i 2021-02-09 01:39

Hello is possible to switch between DML commands/operations (Insert,Delete,Update) on Trigger Body?, I try to snippet some T-SQL for understand me better :

CREA         


        
5条回答
  •  既然无缘
    2021-02-09 02:24

    You can have three separate triggers, one for INSERT one for UPDATE one for DELETE. Since each trigger is different, there is no need for switch logic.

提交回复
热议问题