<legend id='of3re'><style id='of3re'><dir id='of3re'><q id='of3re'></q></dir></style></legend>

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

        • <bdo id='of3re'></bdo><ul id='of3re'></ul>
      1. <small id='of3re'></small><noframes id='of3re'>

      2. <tfoot id='of3re'></tfoot>

      3. Oracle SQL Developer:在网格中显示 REFCURSOR 结果?

        Oracle SQL Developer: Show REFCURSOR Results in Grid?(Oracle SQL Developer:在网格中显示 REFCURSOR 结果?)
          <tbody id='TORuX'></tbody>

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

      4. <small id='TORuX'></small><noframes id='TORuX'>

        <tfoot id='TORuX'></tfoot>
        <legend id='TORuX'><style id='TORuX'><dir id='TORuX'><q id='TORuX'></q></dir></style></legend>

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

                  本文介绍了Oracle SQL Developer:在网格中显示 REFCURSOR 结果?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  作为问题的后续从oracle存储过程获取结果集",有没有办法显示在 SQL Developer 中的网格(而不是纯文本脚本输出窗口)中返回 REFCURSOR 的存储过程的结果?

                  As a follow-up to the question "Get resultset from oracle stored procedure", is there a way to show the results of a stored procedure that returns a REFCURSOR in a grid (instead of the plain text Script Output window) within SQL Developer?

                  答案有所帮助,但我仍然无法在查看值"窗口中显示结果集:

                  The answer helped, but I'm still having a problem displaying the result set in the "View Value" window:

                  列只能扩展少量,可能是由于返回的结果数量.使用 resizer 控件扩展窗口无济于事:

                  The columns can only be expanded a small amount, probably due to the number of results being returned. Expanding the window with the resizer control doesn't help:

                  推荐答案

                  我不认为你可以用一个程序.

                  I don't think you can with a procedure.

                  感谢 DCookie 简化了我的原始答案.

                  Thanks to DCookie for simplifying my original answer.

                  但作为一种变通方法,您可以编写一个函数来调用该过程,然后使用 SQL 调用该函数.

                  But as a work-around you can write a function that calls the procedure and then invoke that using SQL.

                  例如

                  create or replace function callmyproc
                  return sys_refcursor
                  IS
                     rc   sys_refcursor;
                  BEGIN
                  
                     myproc(rc);
                  
                     return rc;
                  
                  END;
                  

                  然后你可以用它来调用:

                  Which you can then call with:

                     select callmyproc()
                     from dual;
                  

                  运行此示例时,SQL Developer 数据网格显示一个结果,但如果向右滚动并单击编辑按钮,您将在网格中看到结果.

                  When this example is run, the SQL Developer data grid shows one result but if you scroll right and click on the edit button, you will see the results in a grid.

                  这篇关于Oracle SQL Developer:在网格中显示 REFCURSOR 结果?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  Accessing another user#39;s table within an Oracle Stored Procedure(在 Oracle 存储过程中访问另一个用户的表)
                  How to View Oracle Stored Procedure using SQLPlus?(如何使用 SQLPlus 查看 Oracle 存储过程?)
                  How to Pass Java List of Objects to Oracle Stored Procedure Using MyBatis?(如何使用 MyBatis 将 Java 对象列表传递给 Oracle 存储过程?)
                  What is dynamic SQL?(什么是动态 SQL?)
                  Mysql - How to quit/exit from stored procedure(Mysql - 如何退出/退出存储过程)
                  How to find a text inside SQL Server procedures / triggers?(如何在 SQL Server 程序/触发器中查找文本?)
                  <legend id='0fBXT'><style id='0fBXT'><dir id='0fBXT'><q id='0fBXT'></q></dir></style></legend>
                  <i id='0fBXT'><tr id='0fBXT'><dt id='0fBXT'><q id='0fBXT'><span id='0fBXT'><b id='0fBXT'><form id='0fBXT'><ins id='0fBXT'></ins><ul id='0fBXT'></ul><sub id='0fBXT'></sub></form><legend id='0fBXT'></legend><bdo id='0fBXT'><pre id='0fBXT'><center id='0fBXT'></center></pre></bdo></b><th id='0fBXT'></th></span></q></dt></tr></i><div id='0fBXT'><tfoot id='0fBXT'></tfoot><dl id='0fBXT'><fieldset id='0fBXT'></fieldset></dl></div>

                      • <bdo id='0fBXT'></bdo><ul id='0fBXT'></ul>
                        <tfoot id='0fBXT'></tfoot>
                            <tbody id='0fBXT'></tbody>

                          <small id='0fBXT'></small><noframes id='0fBXT'>