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

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

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

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

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

        ORA-30926: 无法在源表中获得一组稳定的行

        ORA-30926: unable to get a stable set of rows in the source tables(ORA-30926: 无法在源表中获得一组稳定的行)
          <i id='CZdop'><tr id='CZdop'><dt id='CZdop'><q id='CZdop'><span id='CZdop'><b id='CZdop'><form id='CZdop'><ins id='CZdop'></ins><ul id='CZdop'></ul><sub id='CZdop'></sub></form><legend id='CZdop'></legend><bdo id='CZdop'><pre id='CZdop'><center id='CZdop'></center></pre></bdo></b><th id='CZdop'></th></span></q></dt></tr></i><div id='CZdop'><tfoot id='CZdop'></tfoot><dl id='CZdop'><fieldset id='CZdop'></fieldset></dl></div>
            <bdo id='CZdop'></bdo><ul id='CZdop'></ul>

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

                <tbody id='CZdop'></tbody>
              <legend id='CZdop'><style id='CZdop'><dir id='CZdop'><q id='CZdop'></q></dir></style></legend>

                <tfoot id='CZdop'></tfoot>
                1. 本文介绍了ORA-30926: 无法在源表中获得一组稳定的行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我得到了

                  ORA-30926: 无法在源表中获得一组稳定的行

                  ORA-30926: unable to get a stable set of rows in the source tables

                  在以下查询中:

                    MERGE INTO table_1 a
                        USING 
                        (SELECT a.ROWID row_id, 'Y'
                                FROM table_1 a ,table_2 b ,table_3 c
                                WHERE a.mbr = c.mbr
                                AND b.head = c.head
                                AND b.type_of_action <> '6') src
                                ON ( a.ROWID = src.row_id )
                    WHEN MATCHED THEN UPDATE SET in_correct = 'Y';
                  

                  我运行了 table_1 它有数据,我也运行了内部查询 (src),它也有数据.

                  I've ran table_1 it has data and also I've ran the inside query (src) which also has data.

                  为什么会出现这个错误,如何解决?

                  Why would this error come and how can it be resolved?

                  推荐答案

                  这通常是由 USING 子句中指定的查询中的重复项引起的.这可能意味着 TABLE_A 是父表,并且多次返回相同的 ROWID.

                  This is usually caused by duplicates in the query specified in USING clause. This probably means that TABLE_A is a parent table and the same ROWID is returned several times.

                  您可以通过在查询中使用 DISTINCT 来快速解决问题(实际上,如果Y"是一个常量值,您甚至不需要将其放入查询中).

                  You could quickly solve the problem by using a DISTINCT in your query (in fact, if 'Y' is a constant value you don't even need to put it in the query).

                  假设您的查询是正确的(不知道您的表),您可以执行以下操作:

                  Assuming your query is correct (don't know your tables) you could do something like this:

                    MERGE INTO table_1 a
                        USING 
                        (SELECT distinct ta.ROWID row_id
                                FROM table_1 a ,table_2 b ,table_3 c
                                WHERE a.mbr = c.mbr
                                AND b.head = c.head
                                AND b.type_of_action <> '6') src
                                ON ( a.ROWID = src.row_id )
                    WHEN MATCHED THEN UPDATE SET in_correct = 'Y';
                  

                  这篇关于ORA-30926: 无法在源表中获得一组稳定的行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  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='Lzw12'></small><noframes id='Lzw12'>

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

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

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