码迷,mamicode.com
首页 > 其他好文 > 详细

DML触发器笔记(更新中)

时间:2015-05-02 18:08:41      阅读:120      评论:0      收藏:0      [点我收藏+]

标签:

 

0.1 实验数据库搭建

 

1.1 创建DML触发器语法

 

0.1

 

1.1 创建DML触发器语法

技术分享
 1 --Trigger on an INSERT, UPDATE, or DELETE statement to a table or view (DML Trigger)
 2 CREATE TRIGGER [ schema_name . ]trigger_name 
 3 ON { table | view } 
 4 [ WITH <dml_trigger_option> [ ,...n ] ]
 5 { FOR | AFTER | INSTEAD OF } 
 6 { [ INSERT ] [ , ] [ UPDATE ] [ , ] [ DELETE ] } 
 7 [ NOT FOR REPLICATION ] 
 8 AS { sql_statement  [ ; ] [ ,...n ] | EXTERNAL NAME <method specifier [ ; ] > }
 9 
10 <dml_trigger_option> ::=
11     [ ENCRYPTION ]
12     [ EXECUTE AS Clause ]
13 
14 <method_specifier> ::=
15     assembly_name.class_name.method_name
DML TRIGGER 创建语法

 

DML触发器笔记(更新中)

标签:

原文地址:http://www.cnblogs.com/shuijinghuntun/p/4472273.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!