在Squirrel中创建/替换触发器

Guu*_*uus 11 oracle squirrel-sql

我使用squirrel 3.2.0当我尝试更换此触发器时:

CREATE OR REPLACE TRIGGER crw_ins_trig
  BEFORE INSERT OR UPDATE ON crew
  FOR EACH ROW
DECLARE

BEGIN
    if (:new.crw_id is null) then
        select crw_id_seq.nextval
        into :new.crw_id
        from dual;
    end if;  
END;
/
Run Code Online (Sandbox Code Playgroud)

我收到消息"请输入参数值.值为':new'"

单击"确定"后,结果消息为:

Warning:   Warning: execution completed with warning
SQLState:  null
ErrorCode: 17110
Position: 27

Query 1 of 1, Rows read: 0, Elapsed time (seconds) - Total: 0.023, SQL query: 0.023, Building output: 0
Run Code Online (Sandbox Code Playgroud)

在我的应用程序中,我收到错误 "ORA-04098: trigger 'CRW_INS_TRIG' is invalid and failed re-validation"

这与Squirrel有关吗?如果是这样,我该如何解决?

yat*_*tul 15

您应该在SQuirrel中卸载"sqlparam"插件,之后它不会要求您填写":paramName"变量的值