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

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

    1. <tfoot id='3B1Qd'></tfoot>

      <small id='3B1Qd'></small><noframes id='3B1Qd'>

      1. SQL Server 中的本地和全局临时表

        时间:2023-07-17
          • <bdo id='IaUtN'></bdo><ul id='IaUtN'></ul>
          • <small id='IaUtN'></small><noframes id='IaUtN'>

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

              <tfoot id='IaUtN'></tfoot>

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

                    <tbody id='IaUtN'></tbody>
                2. 本文介绍了SQL Server 中的本地和全局临时表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  SQL Server 中的本地临时表和全局临时表有什么区别?

                  What is the difference between local and global temporary tables in SQL Server?

                  推荐答案

                  我觉得这个解释很清楚(它是从 技术网):

                  I find this explanation quite clear (it's pure copy from Technet):

                  有两种类型的临时表:本地和全局.本地临时表仅在与 SQL Server 实例的同一连接期间对其创建者可见,就像首次创建或引用这些表时一样.用户与 SQL Server 实例断开连接后,本地临时表将被删除.全局临时表在创建后对任何用户和任何连接可见,并在所有引用该表的用户与 SQL Server 实例断开连接时被删除.

                  There are two types of temporary tables: local and global. Local temporary tables are visible only to their creators during the same connection to an instance of SQL Server as when the tables were first created or referenced. Local temporary tables are deleted after the user disconnects from the instance of SQL Server. Global temporary tables are visible to any user and any connection after they are created, and are deleted when all users that are referencing the table disconnect from the instance of SQL Server.

                  这篇关于SQL Server 中的本地和全局临时表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:如何在 SQL Server 中截断日期时间? 下一篇:什么时候应该在 sql server 中使用表变量和临时表?

                  相关文章

                    <bdo id='LM1Nc'></bdo><ul id='LM1Nc'></ul>
                      <tfoot id='LM1Nc'></tfoot>
                    1. <legend id='LM1Nc'><style id='LM1Nc'><dir id='LM1Nc'><q id='LM1Nc'></q></dir></style></legend>

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

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