CREATE or replace TRIGGER t_table1_delete
after delete
ON table1
FOR each row
declare m_a1 char(32);/**/
begin
select max(a1) into m_a1 from table1 where gcbm=:old.gcbm;
if (m_a1 is not null) and (m_a1<>'') then
begin
update table2
set b1='good',
b2='是'
where gcbm=:old.gcbm;
end;
else
begin
update table2
set b1='ok',
b2='否'
where gcbm=:old.gcbm ;
end;
end if;
end;创建没有错误,当删除table1一行的数据时,出现错误:
ORA-04091 .............................
after delete
ON table1
FOR each row
declare m_a1 char(32);/**/
begin
select max(a1) into m_a1 from table1 where gcbm=:old.gcbm;
if (m_a1 is not null) and (m_a1<>'') then
begin
update table2
set b1='good',
b2='是'
where gcbm=:old.gcbm;
end;
else
begin
update table2
set b1='ok',
b2='否'
where gcbm=:old.gcbm ;
end;
end if;
end;创建没有错误,当删除table1一行的数据时,出现错误:
ORA-04091 .............................
解决方案 »
- 想做一个类似大头贴的软件,不知道如何将图像框和头像的合并
- Delphi 怎么实现浏览器中超链接的拖拽
- 菜鸟提问,如何把这段代码做成函数或者过程?
- 求助!用InstalShield做的安装程序在英文版XP中无法打开!
- 关于打印灰度问题 求教
- 求助
- 多语言版本的软件,使用INI,切换到英文版时使用是么字体好?
- 给位高手,小弟搞不定了,进来看看吧。
- CORBA是否或如何支持事务;COM+ OBJECT中事务支持的代码如何写呢?
- 明天要考试,有一题目没弄清,请指教
- 菜鸟问题:请问WinSock API的select函数怎么用?
- Delphi6与C++ Builer6安装在同一台计算机上导致Delphi6部分VCL组件不能使用?
Action Rewrite the trigger (or function) so it does not read that table.