<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'>

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

        Check if two quot;selectquot;s are equivalent(检查两个“选择是否相等)
      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.

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

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

                  相关文档推荐

                  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 查询中包含缺失的月份)
                  <tfoot id='q9REx'></tfoot>

                    <tbody id='q9REx'></tbody>

                      <legend id='q9REx'><style id='q9REx'><dir id='q9REx'><q id='q9REx'></q></dir></style></legend>
                    • <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'>