<tfoot id='zrEgb'></tfoot>

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

  • <legend id='zrEgb'><style id='zrEgb'><dir id='zrEgb'><q id='zrEgb'></q></dir></style></legend>

      <bdo id='zrEgb'></bdo><ul id='zrEgb'></ul>

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

        Oracle 中的显式游标和隐式游标有什么区别?

        What is the difference between explicit and implicit cursors in Oracle?(Oracle 中的显式游标和隐式游标有什么区别?)

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

          <bdo id='4TMmn'></bdo><ul id='4TMmn'></ul>
          • <tfoot id='4TMmn'></tfoot>
            <legend id='4TMmn'><style id='4TMmn'><dir id='4TMmn'><q id='4TMmn'></q></dir></style></legend>

                <small id='4TMmn'></small><noframes id='4TMmn'>

                  本文介绍了Oracle 中的显式游标和隐式游标有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我对 PL/SQL 中的游标术语有点生疏.有人知道吗?

                  I am a bit rusty on my cursor lingo in PL/SQL. Anyone know this?

                  推荐答案

                  隐式游标是 Oracle 在您执行查询时自动"为您创建的游标.编码更简单,但遭受

                  An implicit cursor is one created "automatically" for you by Oracle when you execute a query. It is simpler to code, but suffers from

                  • 效率低下(ANSI 标准规定它必须获取两次以检查是否有多个记录)
                  • 数据错误的脆弱性(如果你得到两行,它会引发一个 TOO_MANY_ROWS 异常)

                  示例

                  SELECT col INTO var FROM table WHERE something;
                  

                  显式游标是您自己创建的游标.它需要更多代码,但提供更多控制权 - 例如,如果您只想要第一条记录并且不关心是否有其他记录,则可以只打开-获取-关闭.

                  An explicit cursor is one you create yourself. It takes more code, but gives more control - for example, you can just open-fetch-close if you only want the first record and don't care if there are others.

                  示例

                  DECLARE   
                    CURSOR cur IS SELECT col FROM table WHERE something; 
                  BEGIN
                    OPEN cur;
                    FETCH cur INTO var;
                    CLOSE cur;
                  END;
                  

                  这篇关于Oracle 中的显式游标和隐式游标有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  Why Mysql#39;s Group By and Oracle#39;s Group by behaviours are different(为什么 Mysql 的 Group By 和 Oracle 的 Group by 行为不同)
                  How to select the first row for each group in MySQL?(如何在MySQL中为每个组选择第一行?)
                  MySQL - Fetching lowest value(MySQL - 获取最低值)
                  Add and link mysql libraries in a cmakelist.txt(在 cmakelist.txt 中添加和链接 mysql 库)
                  What is a good database design (schema) for a attendance database?(考勤数据库的良好数据库设计(架构)是什么?)

                  <small id='8LZNC'></small><noframes id='8LZNC'>

                  <legend id='8LZNC'><style id='8LZNC'><dir id='8LZNC'><q id='8LZNC'></q></dir></style></legend>

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