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

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

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

                  相关文档推荐

                  Building a comma separated list?(建立一个逗号分隔的列表?)
                  Errors in SQL Server while importing CSV file despite varchar(MAX) being used for each column(尽管每列都使用了 varchar(MAX),但在导入 CSV 文件时 SQL Server 中出现错误)
                  How can I import an Excel file into SQL Server?(如何将 Excel 文件导入 SQL Server?)
                  Export table to file with column headers (column names) using the bcp utility and SQL Server 2008(使用 bcp 实用程序和 SQL Server 2008 将表导出到带有列标题(列名称)的文件)
                  Concat field value to string in SQL Server(将字段值连接到 SQL Server 中的字符串)
                  SQL Server Bulk insert of CSV file with inconsistent quotes(SQL Server 批量插入带有不一致引号的 CSV 文件)
                  <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'>