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

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

        检查两个“选择"是否相等

        时间:2023-10-08
      1. <small id='gxUzK'></small><noframes id='gxUzK'>

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

                <tfoot id='gxUzK'></tfoot>
                <i id='gxUzK'><tr id='gxUzK'><dt id='gxUzK'><q id='gxUzK'><span id='gxUzK'><b id='gxUzK'><form id='gxUzK'><ins id='gxUzK'></ins><ul id='gxUzK'></ul><sub id='gxUzK'></sub></form><legend id='gxUzK'></legend><bdo id='gxUzK'><pre id='gxUzK'><center id='gxUzK'></center></pre></bdo></b><th id='gxUzK'></th></span></q></dt></tr></i><div id='gxUzK'><tfoot id='gxUzK'></tfoot><dl id='gxUzK'><fieldset id='gxUzK'></fieldset></dl></div>
                  本文介绍了检查两个“选择"是否相等的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  有没有办法检查两个(非平凡的)选择是否等效?

                  Is there a way to check if two (non-trivial) select are equivalent?

                  最初我希望两个选择之间有形式上的等价,但答案是proving-sql-query-equivalency阻止我.

                  Initially I was hoping for a formally equivalence between two selects, but the answers in proving-sql-query-equivalency stop me.

                  对于我的实际需要,我可以检查两个选择的(实际)结果是否相同.

                  For my actual need I can just check if the (actual) results of two selects are the same.

                  推荐答案

                  如果您想比较查询结果,请尝试以下操作:

                  If you want to compare the query results try the following:

                  (select * from query1 MINUS select * from query2) 
                  UNION ALL
                  (select * from query2 MINUS select * from query1)
                  

                  这将导致所有行仅由一个查询返回.

                  This will result in all rows that are returned by only one of the queries.

                  这篇关于检查两个“选择"是否相等的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:仅对一列使用不同的 SQL 查询多列 下一篇:MySql插入一个select的结果

                  相关文章

                  <tfoot id='q9REx'></tfoot>

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

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