为什么我的触发器不能创建成功?
create or replace trigger securitytest
before insert
on test
begin
if to_char(sysdate,'day') in ('saturday','sunday') or
to_number(to_char(sysdate,'hh24')) not between 9 and 18 then
raise_application_error(-200001,'cannot insert in woking time');
end if
end;