<small id='zMDCq'></small><noframes id='zMDCq'>

  1. <tfoot id='zMDCq'></tfoot>

      <i id='zMDCq'><tr id='zMDCq'><dt id='zMDCq'><q id='zMDCq'><span id='zMDCq'><b id='zMDCq'><form id='zMDCq'><ins id='zMDCq'></ins><ul id='zMDCq'></ul><sub id='zMDCq'></sub></form><legend id='zMDCq'></legend><bdo id='zMDCq'><pre id='zMDCq'><center id='zMDCq'></center></pre></bdo></b><th id='zMDCq'></th></span></q></dt></tr></i><div id='zMDCq'><tfoot id='zMDCq'></tfoot><dl id='zMDCq'><fieldset id='zMDCq'></fieldset></dl></div>
      • <bdo id='zMDCq'></bdo><ul id='zMDCq'></ul>
    1. <legend id='zMDCq'><style id='zMDCq'><dir id='zMDCq'><q id='zMDCq'></q></dir></style></legend>

      PL/SQL Developer 中执行过程的问题

      Problem with execute procedure in PL/SQL Developer(PL/SQL Developer 中执行过程的问题)
        <tbody id='9QG5C'></tbody>

    2. <tfoot id='9QG5C'></tfoot>

        • <bdo id='9QG5C'></bdo><ul id='9QG5C'></ul>
            • <i id='9QG5C'><tr id='9QG5C'><dt id='9QG5C'><q id='9QG5C'><span id='9QG5C'><b id='9QG5C'><form id='9QG5C'><ins id='9QG5C'></ins><ul id='9QG5C'></ul><sub id='9QG5C'></sub></form><legend id='9QG5C'></legend><bdo id='9QG5C'><pre id='9QG5C'><center id='9QG5C'></center></pre></bdo></b><th id='9QG5C'></th></span></q></dt></tr></i><div id='9QG5C'><tfoot id='9QG5C'></tfoot><dl id='9QG5C'><fieldset id='9QG5C'></fieldset></dl></div>
              <legend id='9QG5C'><style id='9QG5C'><dir id='9QG5C'><q id='9QG5C'></q></dir></style></legend>

                <small id='9QG5C'></small><noframes id='9QG5C'>

                本文介绍了PL/SQL Developer 中执行过程的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                这是我第一次尝试创建过程并执行它.首先我创建简单的表.表的数据库方案在这里:

                表名:Ziaci

                列:

                • ZiakId - 主键、数字
                • 姓氏,varchar2
                • 名字,varchar2
                • TriedaId - 伪造密钥、号码

                存储过程只在表中插入数据,我用这个 SQL cmd 创建了存储过程:

                create procedure ziaci_proc(surname_in in varchar2,varchar2 中的 firstname_in,数字中的 tryaid_in)是开始插入 ziaci (surname, firstname,triedaid) 值 (surname_in,firstname_in,triedaid_in);结尾;

                我试着把这个程序称为:

                执行ziaci_proc('X','Y',1)

                我收到此错误:

                ORA-00900 无效的 SQL 语句

                PL/SQL Developer IDE 中的一个带有红色下划线的执行字.

                我测试了这个程序,效果很好.

                我只能用这个 SQL 命令来执行这个过程:

                开始ziaci_proc('A','B',2);结尾;

                有什么不好的,谢谢帮助.

                解决方案

                使用上述 execute 调用存储过程是特定于 SQL*Plus 的.实际上,SQL*Plus 将 execute some_proc() 转换为 BEGIN some_proc();END;,你可以通过尝试调用一个不存在的过程来亲眼看到这一点:

                <前>SQL> 执行 some_proc()开始 some_proc();结尾;*第 1 行的错误:ORA-06550:第 1 行,第 7 列:PLS-00201:必须声明标识符SOME_PROC"ORA-06550:第 1 行,第 7 列:PL/SQL:语句被忽略

                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:

                • ZiakId - primary key, number
                • Surname, varchar2
                • FirstName, varchar2
                • TriedaId - forgein key, number

                Store procedure only insert data in table, I created store procudure with this SQL cmd:

                create procedure ziaci_proc(surname_in in varchar2, 
                firstname_in in varchar2, triedaid_in in number)
                is
                begin
                  insert into ziaci (surname, firstname,triedaid) values (surname_in,firstname_in,triedaid_in);
                  end;
                

                And I try call this procudure as:

                execute ziaci_proc('X','Y',1)
                

                I get this error:

                ORA-00900 invalid SQL statement

                An in PL/SQL Developer IDE is with red color underlined execute word.

                I test this procedure and it works good.

                I can only execute this procedure with this SQL command:

                begin
                ziaci_proc('A','B',2);
                end;
                

                What is bad, thank for help.

                解决方案

                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
                

                这篇关于PL/SQL Developer 中执行过程的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                How to redirect the output of DBMS_OUTPUT.PUT_LINE to a file?(如何将 DBMS_OUTPUT.PUT_LINE 的输出重定向到文件?)
                How do I get column datatype in Oracle with PL-SQL with low privileges?(如何使用低权限的 PL-SQL 在 Oracle 中获取列数据类型?)
                Get a list of all functions and procedures in an Oracle database(获取 Oracle 数据库中所有函数和过程的列表)
                Why cannot I create triggers on objects owned by SYS?(为什么我不能在 SYS 拥有的对象上创建触发器?)
                Returning result even for elements in IN list that don#39;t exist in table(即使对于表中不存在的 IN 列表中的元素也返回结果)
                Reset Sequence in oracle 11g(oracle 11g 中的重置序列)

              1. <tfoot id='qntR9'></tfoot>
              2. <legend id='qntR9'><style id='qntR9'><dir id='qntR9'><q id='qntR9'></q></dir></style></legend>

                <small id='qntR9'></small><noframes id='qntR9'>

                      <bdo id='qntR9'></bdo><ul id='qntR9'></ul>
                          <tbody id='qntR9'></tbody>
                        <i id='qntR9'><tr id='qntR9'><dt id='qntR9'><q id='qntR9'><span id='qntR9'><b id='qntR9'><form id='qntR9'><ins id='qntR9'></ins><ul id='qntR9'></ul><sub id='qntR9'></sub></form><legend id='qntR9'></legend><bdo id='qntR9'><pre id='qntR9'><center id='qntR9'></center></pre></bdo></b><th id='qntR9'></th></span></q></dt></tr></i><div id='qntR9'><tfoot id='qntR9'></tfoot><dl id='qntR9'><fieldset id='qntR9'></fieldset></dl></div>