0

我在 SQL 开发人员上运行一个 PL/SQL 匿名块,它调用一些函数/过程(这反过来又调用其他函数/过程)......外部块包含一些 Dbms_Output.Put_Line 语句以及被调用的函数/过程。 ...外部块中的 Dbms_Output.Put_Line 语句运行良好并提供输出,而内部块不打印任何内容。有什么帮助吗?

 set serveroutput on;
 DECLARE
 p_comIds CM.NUM_ARRAY; --a table type
 --declare some variables
 BEGIN
   p_comIds  :=cm.NUM_ARRAY();
   p_comIds.EXTEND;
   p_comIds(p_comIds.LAST) := 18508781;
   cm.someProcedure(p_comIds); --contains Dbms_Output.put_line
  Dbms_Output.Put_Line('this prints'); -this prints
END;
4

0 回答 0