关于触发器的几种类别

1、Row-level triggers: Execute once for each row affected by a DML statement

2、Statement-level triggers: Execute once for each DML statement 

3、Before/After triggers:  Pay attention to the two special tables,  :old and :new 

4、Instead of triggers:  Tell oracle  what  to do instead of  performing the actions that invoked the triggers.
                                          例子:一个视图是由两个表进行连接操作后形成的,如果要想通过对视图插入数据来
                                                        达到 更新数据库的目的,这个时候需要用到这个类型的触发器,否则难以实现

5、Schema triggers: DDL, create/alter/drop table, audit, truncate, invoke, rename. 可以用于上述语句触发的
                                        事件上。

6、Database-level triggers: logoffs, shutdown, startups, logins.可以用于上述语句触发的事件上。

                                           

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值