ALTER TRIGGER [dbo].[ToBlockDeleting]
   ON  [dbo].[t]
   INSTEAD   OF   DELETE 
AS 
BEGIN

 
 update t set flag=flag+1 where t.id=(select  id from deleted)
 

END

GO

相关文章:

  • 2021-10-10
  • 2021-12-31
  • 2021-05-23
  • 2021-07-14
  • 2021-08-20
  • 2021-11-30
  • 2022-12-23
  • 2021-11-09
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-02-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案