<bdo id='s7TuH'></bdo><ul id='s7TuH'></ul>

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

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

      <tfoot id='s7TuH'></tfoot>

        <legend id='s7TuH'><style id='s7TuH'><dir id='s7TuH'><q id='s7TuH'></q></dir></style></legend>

        哪个性能更好,CTE 或临时表?

        时间:2023-07-17
          <legend id='UIjbR'><style id='UIjbR'><dir id='UIjbR'><q id='UIjbR'></q></dir></style></legend>

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

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

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

                  本文介绍了哪个性能更好,CTE 或临时表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  CTETemporary Tables 哪个更高效?

                  推荐答案

                  我会说它们是不同的概念,但与粉笔和奶酪"没有太大区别.

                  I'd say they are different concepts but not too different to say "chalk and cheese".

                  • 临时表适合重复使用或对一组数据执行多次处理.

                  • A temp table is good for re-use or to perform multiple processing passes on a set of data.

                  CTE 可用于递归或简单地提高可读性.
                  并且,像视图或内联表值函数一样,也可以像宏一样在主查询中展开

                  A CTE can be used either to recurse or to simply improved readability.
                  And, like a view or inline table valued function can also be treated like a macro to be expanded in the main query

                  临时表是另一个在范围方面有一些规则的表

                  A temp table is another table with some rules around scope

                  我已经存储了我同时使用的过程(和表变量)

                  I have stored procs where I use both (and table variables too)

                  这篇关于哪个性能更好,CTE 或临时表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:GO在SQL Server Management Studio中有什么用处&amp;处理 SQL? 下一篇:在 SQL Server 中获取一周的第一天

                  相关文章

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

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

                    1. <tfoot id='i3oc0'></tfoot>

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