sql触发器delete与update操作
编写触发器:
代码如下 | 复制代码 |
create trigger BlogDelet on Blog instead of delete as delete from Comment where CommentBlog in (select Id from deleted) |
创建一个Update触发器:
代码如下 | 复制代码 |
Create Trigger truStudent Update BorrowRecord end |
更多详细的关于sql触发器可参考http://www.zzzyk.com/database/mssqlserver/39336.htm
补充:数据库,Mssql