标签:http end 图片 表示 ble with 指定 sqserver ack
先上代码
先建个表用于测试
CREATE TRIGGER INSERT_forbidden on s after INSERT AS BEGIN RAISERROR(‘禁止向s中插入数据‘,2,3) ROLLBACK--不加这一句不会回滚,抛错后将直接插入 END
上述触发器执行情况:当向s表插入数据时禁止插入,插入时抛错(raiserror)如下
语法:
CREATE TRIGGER trigger_name ON table_name [WITH ENCRYPTION] FOR | AFTER | INSTEAD OF [DELETE, INSERT, UPDATE] AS T-SQL语句 GO --with encryption 表示加密触发器定义的sql文本 --delete,insert,update指定触发器的类型
标签:http end 图片 表示 ble with 指定 sqserver ack
原文地址:https://www.cnblogs.com/yanan7890/p/9284927.html