PLSQL碰到pls-00103的错误解决办法

CREATE OR REPLACE PACKAGE PKG_SHOW_CUST_DETAILS
AS
PROCEDURE SHOW_CUST_DETAILS( myArg VARCHAR2);
END PKG_SHOW_CUST_DETAILS;

CREATE OR REPLACE PACKAGE BODY PKG_SHOW_CUST_DETAILS
AS
PROCEDURE SHOW_CUST_DETAILS(myArg VARCHAR2)
IS
BEGIN
DBMS_OUTPUT.PUT_LINE(myArg);
END SHOW_CUST_DETAILS;

END PKG_SHOW_CUST_DETAILS;
/

如上面代码 很简单的创建packge 编译的时候会出现

Error: PLS-00103: Encountered the symbol "CREATE" when expecting one of the following:

( begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>

解决办法

代码作为一个脚本来执行,需要在每个create完毕之后添加一个 '/' ,即可解决问题

posted on 2016-12-05 11:45  zzz初见  阅读(44998)  评论(0编辑  收藏  举报

导航