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

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

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

  • <small id='A0O5e'></small><noframes id='A0O5e'>

      1. 在 Oracle 中使用 Join 查询进行更新

        Update with Join query in Oracle(在 Oracle 中使用 Join 查询进行更新)

          <tbody id='ok7t6'></tbody>
        1. <small id='ok7t6'></small><noframes id='ok7t6'>

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

                  本文介绍了在 Oracle 中使用 Join 查询进行更新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  查询有什么问题?(无限期执行)

                  what is wrong in query? (it executes indefinitely)

                  UPDATE table1 t1 SET (t1.col,t1.Output) = (
                    SELECT t2.col, t3.Output + t2.col
                    FROM tabl2 t3 
                    LEFT JOIN table1 t2 ON t3.Join_Key = t2.Join_Key
                    WHERE t2.col is not NULL);
                  

                  请帮帮我.

                  推荐答案

                  您的查询对于通用 table1、table2 和 join_key 引用没有多大意义.

                  Your query does not make a whole lot of sense with the generic table1, table2, and join_key references.

                  如果这不是您要查找的内容,那么拥有一些示例数据以更好地了解您要查找的结果会很有帮助.

                  If this is not what you are looking for, it would be helpful to have some sample data to get a better idea of what results you are looking for.

                  update table1 t1
                     set t1.col = (select t2.col
                                   from table2 t2
                                   where  t1.join_key = t2.join_key(+)  
                                    and  t1.col is not null),
                         t1.output = (select t2.output + t1.col
                                      from  table2 t2
                                     where  t1.join_key = t2.join_key(+)  
                                       and  t1.col is not null);
                  

                  这篇关于在 Oracle 中使用 Join 查询进行更新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                  相关文档推荐

                  ibtmp1是非压缩的innodb临时表的独立表空间,通过innodb_temp_data_file_path参数指定文件的路径,文件名和大小,默认配置为ibtmp1:12M:autoextend,也就是说在文件系统磁盘足够的情况下,这个文件大小是可以无限增长的。 为了避免ibtmp1文件无止境的暴涨导致
                  SQL query to group by day(按天分组的 SQL 查询)
                  What does SQL clause quot;GROUP BY 1quot; mean?(SQL 子句“GROUP BY 1是什么意思?意思是?)
                  MySQL groupwise MAX() returns unexpected results(MySQL groupwise MAX() 返回意外结果)
                  MySQL SELECT most frequent by group(MySQL SELECT 按组最频繁)
                  Include missing months in Group By query(在 Group By 查询中包含缺失的月份)
                  <i id='ycKMg'><tr id='ycKMg'><dt id='ycKMg'><q id='ycKMg'><span id='ycKMg'><b id='ycKMg'><form id='ycKMg'><ins id='ycKMg'></ins><ul id='ycKMg'></ul><sub id='ycKMg'></sub></form><legend id='ycKMg'></legend><bdo id='ycKMg'><pre id='ycKMg'><center id='ycKMg'></center></pre></bdo></b><th id='ycKMg'></th></span></q></dt></tr></i><div id='ycKMg'><tfoot id='ycKMg'></tfoot><dl id='ycKMg'><fieldset id='ycKMg'></fieldset></dl></div>

                        <bdo id='ycKMg'></bdo><ul id='ycKMg'></ul>
                          <tbody id='ycKMg'></tbody>
                        • <legend id='ycKMg'><style id='ycKMg'><dir id='ycKMg'><q id='ycKMg'></q></dir></style></legend>

                            <tfoot id='ycKMg'></tfoot>

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