日期:2014-05-17 浏览次数:20991 次
--表结构
create table Categorys
(
id nvarchar2(50) not null,
companyid nvarchar(50),
categoryname nvarchar2(50)
)
--触发器
create or replace trigger tri_Category
after insert on categorys
for each row
begin
delete categorys where categoryname is null;
end tri_Category;
insert into categorys(ID,COMPANYID) values('11','11');
ORA-04091: 表 CATEGORYS 发生了变化, 触发器/函数不能读它
ORA-06512: 在 "TRI_CATEGORY", line 2
ORA-04088: 触发器 'TRI_CATEGORY' 执行过程中出错