How can I do a BEFORE UPDATED trigger with sql server?

后端 未结 9 567
眼角桃花
眼角桃花 2020-11-28 10:18

I\'m using Sqlserver express and I can\'t do before updated trigger. There\'s a other way to do that?

9条回答
  •  暖寄归人
    2020-11-28 10:49

    To do a BEFORE UPDATE in SQL Server I use a trick. I do a false update of the record (UPDATE Table SET Field = Field), in such way I get the previous image of the record.

提交回复
热议问题