我必须生成一个.xlsx文件。我正在按照本页的说明:https://technology.amis.nl/2011/02/19/create-an-excel-file-with-plsql/
如本教程所述,我运行这个脚本来创建as_xlsx包:https://technology.amis.nl/wp-content/uploads/2011/02/as_xlsx18.txt
我需要这个剧本起作用:
begin
as_xlsx.query2sheet( 'SELECT column FROM table');
as_xlsx.save( '/folder', 'my.xlsx');
end;但是,如果出现以下错误,请不要工作:PLS-00201: identifier 'AS_XLSX.QUERY2SHEET' must be declared
我看到,在创建的包中,显示了相同的信息:

发布于 2020-10-07 18:59:44
看起来,您创建了一个没有规范的包body。
SQL> create or replace package body pkg_test as
2 procedure p_test is begin null; end;
3 end;
4 /
Warning: Package Body created with compilation errors.
SQL> show err
Errors for PACKAGE BODY PKG_TEST:
LINE/COL ERROR
-------- -----------------------------------------------------------------
0/0 PL/SQL: Compilation unit analysis terminated
1/14 PLS-00201: identifier 'PKG_TEST' must be declared
1/14 PLS-00304: cannot compile body of 'PKG_TEST' without its
specification
SQL>所以:规范第一,正文下一步:
SQL> create or replace package pkg_test as
2 procedure p_test;
3 end;
4 /
Package created.
SQL> create or replace package body pkg_test as
2 procedure p_test is begin null; end;
3 end;
4 /
Package body created.
SQL>也许值得一提的是:
中使用的类型和常量
https://stackoverflow.com/questions/64250563
复制相似问题