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

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

    <tfoot id='w1nkO'></tfoot>

    • <bdo id='w1nkO'></bdo><ul id='w1nkO'></ul>

        我们可以在 PL/SQL 中使用线程吗?

        时间:2023-09-19
        <tfoot id='Dpu4P'></tfoot>

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

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

                1. 本文介绍了我们可以在 PL/SQL 中使用线程吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  PL/SQL 中有异步调用的特性吗?假设我在一个代码块中想要多次调用一个过程并且不会打扰过程返回的时间和内容?

                  Is there any feature of asynchronous calling in PL/SQL? Suppose I am in a block of code would like to call a procedure multiple times and wouldn't bother when and what the procedure returns?

                  BEGIN
                    myProc(1,100);
                    myProc(101,200);
                    myProc(201,300);
                    ...
                    ...
                  
                  END;
                  

                  在上述情况下,我不希望我的代码在执行(101,200)之前等待 myProc(1,100) 完成处理
                  谢谢.

                  In the above case, I don't want my code to wait for myProc(1,100) to finish processing before executing(101,200)
                  Thanks.

                  推荐答案

                  +1 用于 DBMS_SCHEDULER 和 DBMS_JOB 方法,但也要考虑您是否应该使用不同的方法.

                  +1 for DBMS_SCHEDULER and DBMS_JOB approaches, but also consider whether you ought to be using a different approach.

                  如果您有一个以逐行方式执行的过程并且您发现它很慢,那么答案可能不是同时多次运行该过程而是确保使用基于集合的方法.在极端情况下,您甚至可以使用并行查询和并行 DML 来减少进程的挂钟时间.

                  If you have a procedure which executes in a row-by-row manner and you find that it is slow, the answer is probably not to run the procedure multiple times simltaneously but to ensure that a set-based aproach is used instead. At an extreme you can even then use parallel query and parallel DML to reduce the wall clock time of the process.

                  我提到这个只是因为这是一个很常见的错误.

                  I mention this only because it is a very common fault.

                  这篇关于我们可以在 PL/SQL 中使用线程吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:在程序中将提交放在 DML 之后有什么影响? 下一篇:SQL (ORACLE):ORDER BY 和 LIMIT

                  相关文章

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

                  2. <tfoot id='5lzRw'></tfoot>

                      <small id='5lzRw'></small><noframes id='5lzRw'>

                    1. <legend id='5lzRw'><style id='5lzRw'><dir id='5lzRw'><q id='5lzRw'></q></dir></style></legend>