PLS-00306: wrong number or types of arguments in call to 'OUTPUT_ARRAY'

人盡茶涼 提交于 2019-12-02 06:24:20

The type definition in main sql file is not the type that is expected by the package subroutine. IOPACKAGE.OUTPUT_ARRAY-subroutine expects type IOPACKAGE.NUMBER_ARRAY_TYPE. You don't have to re-define the type. The following should work:

declare
  v_array IOPACKAGE.NUMBER_ARRAY_TYPE;
begin
  IOPACKAGE.OUTPUT_ARRAY(v_array);
end;

See the difference between IOPACKAGE.NUMBER_ARRAY_TYPE and NUMBER_ARRAY_TYPE. They are similar but not the same.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!