时间:2021-07-01 10:21:17 帮助过:31人阅读
本文章讲述最简单的sql 触发器的delete和update操作,有需要学习的同学可以参考一下本文章。
编写:
代码如下 | |
create trigger BlogDelet on Blog instead of delete as delete from Comment where CommentBlog in ( Id from deleted) |
创建一个Update触发器:
代码如下 | |
Create Trigger truStudent Update BorrowRecord end |
更多详细的关于sql触发器可参考