使用Navicat执行sql创建oracle触发器会把后面的语句也加进去
create or replace trigger tr_QGLS_SystemConfig
before insert on SystemConfig for each row when (new.Id is null)
begin
select seq_SystemConfig.nextval into:new.QSC_Id from dual;
end;
insert into SystemConfig(COMName,GPSFreq,SaveFreq,SpeedUpLimit,SpeedRatio) values('C1',1,1,200,500.0);
会提示 ORA-24344: 成功, 但出现编译错误,然后,在触发器的定义发现
begin
select seq_SystemConfig.nextval into:new.QSC_Id from dual;
end;
insert into SystemConfig(COMName,GPSFreq,SaveFreq,SpeedUpLimit,SpeedRatio) values('C1',1,1,200,500.0);
insert语句也会被添加进去
我后面又用了别的语句发现只要是在end;后面的语句都会被添加到触发器定义里
除了单独执行以外,还有别的办法可以解决这个问题吗
Windows server 2012,Navicat Premium 12