Problem with execute procedure in PL/SQL Developer

前端 未结 2 863
甜味超标
甜味超标 2020-12-20 12:54

I this is my first attempt to create procedure and execute it. First I create simple table. DB scheme of table is here:

Table name: Ziaci

Columns:

相关标签:
2条回答
  • 2020-12-20 13:03

    I think you're writing command in "SQL Window". You should use "Command Window" to succesfully execute this line:

    execute ziaci_proc('X','Y',1);
    
    0 讨论(0)
  • 2020-12-20 13:23

    Calling stored procedures using execute as above is specific to SQL*Plus. In fact, SQL*Plus converts execute some_proc() into BEGIN some_proc(); END;, You can see this for yourself by attempting to call a procedure that doesn't exist:

    SQL> execute some_proc()
    BEGIN some_proc(); END;
    
          *
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00201: identifier 'SOME_PROC' must be declared
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    
    0 讨论(0)
提交回复
热议问题