<legend id='dCLup'><style id='dCLup'><dir id='dCLup'><q id='dCLup'></q></dir></style></legend>
  1. <small id='dCLup'></small><noframes id='dCLup'>

    • <bdo id='dCLup'></bdo><ul id='dCLup'></ul>
    <tfoot id='dCLup'></tfoot>

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

      在一个过程中调用另一个 PL/SQL 过程

      时间:2023-11-02

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

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

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

                问题描述

                我是 PL/SQL 的新手 &将不胜感激这方面的帮助.我创建了一个复制合同的程序.现在我想从这个过程中调用另一个过程,该过程将复制与我正在复制的合同相关的所有程序.一份合同可以有多个程序.

                I'm new to PL/SQL & would greatly appreciate help in this. I've created a procedure to copy contracts. Now I want to call another procedure from within this procedure which shall copy all the programs related to the contract I'm copying. One contract can have multiple programs.

                推荐答案

                您只需将过程的名称和参数放入代码中即可调用过程,例如

                You call a procedure by simply putting its name and parameters in your code, e.g.

                begin
                    dbms_output.put_line('Demo');
                end;
                

                或在一个过程中,

                create or replace procedure demo
                as
                begin
                    dbms_output.put_line('Demo');
                end;
                

                我已经使用 dbms_output.put_line 作为过程的示例,但显然任何其他过程都将以相同的方式调用:

                I have used dbms_output.put_line as an example of a procedure, but obviously any other procedure would be called the same way:

                begin
                    foo;
                    bar(1);
                    demo(true, 'Bananas', date '2018-01-01');
                end;
                

                出于某种原因,许多初学者都想在过程调用之前添加exec.我不知道这是从哪里来的,因为 PL/SQL 没有这样的关键字.可能他们正在考虑 SQL*Plus execute 命令,可简写为exec.但是,SQL*Plus 是一个单独的命令行实用程序,它有自己的命令,与 PL/SQL 语言无关.

                For some reason, many beginners are tempted to add exec before the procedure call. I don't know where that comes from because PL/SQL has no such keyword. Possibly they are thinking of the SQL*Plus execute command, which can be abbreviated to exec. However, SQL*Plus is a separate command line utility with its own commands that have nothing to do with the PL/SQL language.

                这篇关于在一个过程中调用另一个 PL/SQL 过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:ORA-04021: 等待锁定对象时发生超时 下一篇:PLSQL :NEW 和 :OLD

                相关文章

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

                  2. <small id='FASzX'></small><noframes id='FASzX'>

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