X
xnnfan
Unregistered / Unconfirmed
GUEST, unregistred user!
create or replace trigger GJJB_JeiBShiJafter update on GZJJB_JiaoJQKfor each rowdeclare kssj varchar2(19);begin If updating('JIAOBSJ') then select substr(jiaobrgzsj,23,19) into kssj From GZJJB_JIAOJQK where ID=ld.ID and jiaobrxm=ld.jiaobrxm; If :new.jiaobsj>kssj then update GZJJB_JiaoJQK set JieBSJ=:new.jiaobsj,JJBJ=1 where ID=ld.ID and jiaobrxm=ld.jiaobrxm and jiebrxm=ld.jiebrxm; Else update GZJJB_JiaoJQK set JieBSJ=kssj,JJBJ=1 where ID=ld.ID and jiaobrxm=ld.jiaobrxm and jiebrxm=ld.jiebrxm; end if; end GZJJB_JeiBShiJ;以上触发器可以通编译,但在运行过程中总是出错,如 line 8 或 line 10 等等!不知为什么?请大家帮帮忙!急