我想用oracle写一个触发器,就是针对一个表(yh),要修改这个表中某一行中的密码属性时,如果你修改的密码长度小于2,就报错,我的代码如下:
create or replace trigger cfg
 before update on yh for each row
begin
if(length(yh.key)<=2) then
raise_application_error(-20001,'密码的长度太短了!');
 end if;
 end;
 /
系统说我创建的触发器有编译错误。
怎么回事?