永发信息网

oracle 在一个模式中触发器名不能相同 这里面的模式指什么

答案:3  悬赏:30  手机版
解决时间 2021-02-08 05:51
oracle 在一个模式中触发器名不能相同 这里面的模式指什么
最佳答案
就理解成用户就好了。
一个用户名下面不能创建两个相同名字的触发器!
全部回答
是不是before、instead of、after + insert 、update、delete on 表 这种不同的模式

一个触发器试图修改或查询目前正在触发器语句修改的表。建议改一下你的触发器逻辑。

网上也有解释:

error:   ora-04091: table name is mutating, trigger/function may not see it

cause:   a statement executed a trigger or custom pl/sql function. that trigger/function tried to modify or query a table that is currently being modified by the statement that fired the trigger/function.

action:   the options to resolve this oracle error are:     rigger/function so that it does not try to modify/query the table in question.     for example, if you've created a trigger against the table called orders and then the trigger performed a select against the orders table as follows:

    create or replace trigger orders_after_insert     after insert     on orders     for each row

    declare     v_quantity number;

    begin

    select quantity     into v_quantity     from orders     where order_id = 1;

    end;

you would receive an error message as follows:

when you create a trigger against a table, you can't modify/query that table until the trigger/function has completed.

remember that you can always use the :new and :old values within the trigger, depending on the type of trigger.

我要举报
如以上问答信息为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
深圳公明离东莞那个镇是交界
【发展规划书】...我.2:环境分析3:确定目标4:
保利馨园地址有知道的么?有点事想过去
宝骏和北汽哪个质量好
中通快递公司(云雾中学中通快递公司)怎么去啊
学用3DMAX制作景观效果图有什么好的书
离别第二故乡的句子我在外地做生意快四年了,
客观事物歪曲的知觉是A.妄想B.幻觉C.错觉D.虚
模具?常说的FIT模是什么意思?
《大灌篮》英文Kung Fu Dunk 怎么读,谐音就行
皆喜木门怎么去啊,有知道地址的么
美的3p天花空调显示E2是什么故障
UNiversal彩金钻石戒指大约多少钱
有谁研究过这个版本奥巴马出羊刀
宝宝多大可以喝鱼汤
推荐资讯
我们学校有CMCC覆盖了,连接好了以后上不了网
上海南汇鹿园工业区在什么地方啊,我要过去处
国珍是不是骗人,如何销售的?怎么拿提成?要
香港雅宝家具地址在什么地方,想过去办事
台北新娘婚纱摄影这个地址在什么地方,我要处
【春晚忐忑】因为所以关联词中所以可以省略吗
梅梅茶艺地址在什么地方,我要处理点事
奥拉星珍奇之诛仙破军贪狼护符怎样得
快递驿站(龙头镇快递驿站)地址好找么,我有些
带尚亿佳仁特产(江夏店)地址在什么地方,我要
身高160腰围59 体重却只有33公斤正常吗
有什么好玩的抢夺地盘的电脑游戏推荐么,内存
正方形一边上任一点到这个正方形两条对角线的
阴历怎么看 ?