K
kk2000
Unregistered / Unconfirmed
GUEST, unregistred user!
---------------------------<br>错误<br>---------------------------<br>ORA-01403: no data found<br>ORA-06512: at "CSI2005.TRI_KC06K4", line 7<br>ORA-04088: error during execution of trigger 'CSI2005.TRI_KC06K4'<br><br>查看错误堆栈的程序源?<br>---------------------------<br>是(Y) 否(N) <br>---------------------------<br>触发器原程序:<br>CREATE OR REPLACE TRIGGER TRI_KC06K4<br>BEFORE INSERT <br>ON CSI2005.KC06K4<br>REFERENCING OLD AS OLD NEW AS NEW<br>FOR EACH ROW<br><br><br>DECLARE<br> s_AAE790 temp_aa83.aae790%TYPE;<br> s_YKC130 kc04k1.YKC130%type;<br> s_YKC140 kc04k2.YKC140%type;<br> str_AAC001 KC06.AAC001%type;<br>BEGIN<br> SELECT AAC001 INTO str_AAC001 from kc06 where AKC020 = :NEW.AKC020;<br> /*如果是退费由于不能在发生时立即冲到IC卡上,所以则需要往医保个人帐户收入流水帐表中增加一条记录*/<br> IF :NEW.AKC186='9' and :NEW.AKC185 > 0 THEN<br> SELECT SEQ_AAE790.NEXTVAL INTO S_AAE790 FROM DUAL;<br> DELETE FROM TEMP_AA83 ;<br> INSERT INTO TEMP_AA83 (AAE790,AAA831,AAA832) VALUES (S_AAE790,'否','否');<br> SELECT SEQ_YKC130.NEXTVAL INTO S_YKC130 FROM DUAL;<br> INSERT INTO KC04K1(YKC130,<br> YKC028,<br> AAC001,<br> YKC131,<br> YKC132,<br> YKC133,<br> YKC134,<br> YKC135)<br> VALUES( S_YKC130,<br> '14',<br> str_AAC001,<br> :NEW.AKC185,<br> :NEW.AAE011,<br> :NEW.AKC188,<br> :NEW.AKC180,<br> :New.YKC101);<br> ELSE IF :NEW.AKC186='5' AND :NEW.AKC185 >0 THEN /*如果是正常消费项目,则需要记录到KC04K2表(医保个人帐户支出流水帐)*/<br> SELECT SEQ_AAE790.NEXTVAL INTO S_AAE790 FROM DUAL;<br> DELETE FROM TEMP_AA83 ;<br> INSERT INTO TEMP_AA83 (AAE790,AAA831,AAA832) VALUES (S_AAE790,'否','否');<br> SELECT SEQ_YKC140.NEXTVAL INTO S_YKC140 FROM DUAL;<br> INSERT INTO KC04K2(YKC140,<br> AAC001,<br> YKC028,<br> YKC141,<br> YKC142,<br> YKC143,<br> YKC144,<br> YKC145)<br> VALUES ( s_YKC140,<br> str_AAC001,<br> '20',<br> :NEW.AKC185,<br> :NEW.AKC188,<br> :NEW.AAE011,<br> :NEW.AKC180,<br> :NEW.YKC101);<br> END IF;<br> END IF;<br><br><br>END;<br>这个触发器怎么会造成上面的错误!