PLS-00103: Encountered the symbol “CREATE”

前端 未结 3 1498
再見小時候
再見小時候 2020-12-01 14:09

What is the problem with this package as it is giving an error?

CREATE OR REPLACE PACKAGE PKG_SHOW_CUST_DETAILS 
AS
    PROCEDURE SHOW_CUST_DETAILS( myArg VA         


        
相关标签:
3条回答
  • 2020-12-01 14:11

    For me / had to be in a new line.

    For example

    create type emp_t;/

    didn't work

    but

    create type emp_t;

    /

    worked.

    0 讨论(0)
  • 2020-12-01 14:18

    At line 5 there is a / missing.

    There is a good answer on the differences between ; and / here.

    Basically, when running a CREATE block via script, you need to use / to let SQLPlus know when the block ends, since a PL/SQL block can contain many instances of ;.

    0 讨论(0)
  • 2020-12-01 14:22

    Run package declaration and body separately.

    0 讨论(0)
提交回复
热议问题