我们家大侄子是傻子 2017-06-05 01:07 采纳率: 100%
浏览 957

powerdesigner生成触发器错误

SQL> drop trigger tib_table_20
2 /

drop trigger tib_table_20

ORA-04080: 触发器 'TIB_TABLE_20' 不存在
SQL> drop table Table_20 cascade constraints
2 /

drop table Table_20 cascade constraints

ORA-00942: 表或视图不存在
SQL> /*==============================================================*/
2 /* Table: Table_20 /
3 /
==============================================================*/
4 create table Table_20 (
5 logid NUMBER(10) not null,
6 content VARCHAR(400),
7 constraint PK_TABLE_20 primary key (logid)
8 )
9 /

Table created
SQL> create trigger tib_table_20 before insert
2 on Table_20 for each row
3 declare
4 integrity_error exception;
5 errno integer;
6 errmsg char(200);
7 dummy integer;
8 found boolean;
9

10 begin
11 -- Column "logid" uses sequence Sequence_20
12 select Sequence_20.NEXTVAL INTO :new.logid from dual;
13

14 -- Errors handling
15 exception
16 when integrity_error then
17 raise_application_error(errno, errmsg);
18 end;
19 /

Warning: Trigger created with compilation errors

本来一直用的好好地,不知道怎么就突然这样了,求大神帮助

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog