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

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

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

        使用带有联合和 CLOB 字段的选择时出现 ORA-00932 错误

        时间:2023-11-03

              <tbody id='Dqel8'></tbody>
            • <bdo id='Dqel8'></bdo><ul id='Dqel8'></ul>

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

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

                  本文介绍了使用带有联合和 CLOB 字段的选择时出现 ORA-00932 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  首先,这不是这个 问题.如果是,抱歉,我无法通过阅读来解决我的问题.

                  First of all, this isn't a duplicate of this question. If it is, sorry but I couldn't solve my problem by reading it.

                  我收到此错误:

                  ORA-00932: inconsistent datatypes: expected - got CLOB
                  

                  当我尝试执行这个 SELECT 语句时:

                  When I try to execute this SELECT statement:

                  SELECT TXT.t_txt 
                    FROM CITADM.tb_avu_txt_grc GR  
                   INNER JOIN CITADM.tb_avu_txt TXT   
                      ON (GR.e_txt = TXT.e_txt and GR.u_txt = TXT.u_txt)  
                   WHERE  TXT.u_lin_ord = 1
                  UNION
                  SELECT TXT.t_txt 
                    FROM CITADM.tb_avu_txt_grc_cvd GRC  
                   INNER JOIN CITADM.tb_avu_txt TXT  
                      ON (GRC.e_txt = TXT.e_txt and GRC.u_txt = TXT.u_txt)  
                   WHERE  TXT.u_lin_ord = 2
                  

                  所选字段(t_txt) 是CLOB 数据类型.如您所见,它是同一个表的同一列.这个声明属于一个更大的声明,我已经隔离了我遇到这个问题的部分.

                  The selected field(t_txt) is of CLOB datatype. As you can see, it's the same column of the same table. This statement belongs to a bigger one, I've isolated the part where I'm having this problem.

                  非常感谢.

                  推荐答案

                  我认为问题在于使用了 UNION 而不是 UNION ALL.UNION 运算符将组合两个集合并消除重复项.由于无法比较 CLOB 类型,因此无法进行重复消除部分.

                  I believe the problem is the use of UNION instead of UNION ALL. The UNION operator will combine the two sets and eliminate duplicates. Since CLOB types cannot be compared, the duplicate elimination part is not possible.

                  使用 UNION ALL 不会尝试进行重复消除(反正你可能没有重复)所以它应该可以工作.

                  Using UNION ALL won't attempt to do duplicate elimination (you probably don't have duplicates anyways) so it should work.

                  这篇关于使用带有联合和 CLOB 字段的选择时出现 ORA-00932 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将 Oracle PL/SQL 翻译成 Postgresql PL/pgSQL 的工具 下一篇:如何判断我的 Oracle 系统是否设置为支持 Unicode 或多字节字符?

                  相关文章

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

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

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

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