我想用一些程序创建一个 oracle 包,但是我得到一个编译错误。如何调试此代码?
CREATE OR REPLACE PACKAGE BODY es IS
PROCEDURE spisok(parent_id IN INTEGER)
AS ID SPISOK_UZLOV.SP_ID%TYPE;
CURSOR child_id IS SELECT fr_id FROM frame WHERE fr_fr_id=parent_id;
BEGIN
INSERT INTO SPISOK_UZLOV VALUES(parent_id);
OPEN child_id;
LOOP
FETCH child_id INTO ID;
EXIT WHEN child_id%NOTFOUND;
spisok(ID);
END LOOP;
CLOSE child_id;
END spisok;
END es;
我得到 [Err] ORA-24344:编译错误成功。