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完毕之后添加一个 '/' ,即可解决问题

上一篇:mysql-关于Unix时间戳(unix_timestamp)


下一篇:LOJ#3093. 「BJOI2019」光线(递推+概率期望)