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

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

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

  3. <small id='vis9p'></small><noframes id='vis9p'>

    1. SQL Server:我应该在 sys 表上使用 information_schema 表吗?

      SQL Server: should I use information_schema tables over sys tables?(SQL Server:我应该在 sys 表上使用 information_schema 表吗?)

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

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

                本文介绍了SQL Server:我应该在 sys 表上使用 information_schema 表吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                在 SQL Server 中,元数据有两种模式:

                In SQL Server there is two schemas for metadata:

                • INFORMATION_SCHEMA
                • 系统

                我听说 INFORMATION_SCHEMA 表是基于 ANSI 标准的.在开发时,例如存储过程,使用 INFORMATION_SCHEMA 表而不是 sys 表是否明智?

                I have heard that INFORMATION_SCHEMA tables are based on ANSI standard. When developing e.g. stored procedures, should it be wise to use INFORMATION_SCHEMA tables over sys tables?

                推荐答案

                我总是尝试使用 Information_schema 视图而不是直接查询 sys 模式.

                I would always try to use the Information_schema views over querying the sys schema directly.

                视图符合 ISO 标准,因此理论上您应该能够轻松地跨不同 RDBMS 迁移任何查询.

                The Views are ISO compliant so in theory you should be able to easily migrate any queries across different RDBMS.

                但是,在某些情况下,我需要的信息在视图中不可用.

                However, there have been some cases where the information that I need is just not available in a view.

                我提供了一些链接,其中包含有关视图和查询 SQL Server 目录的更多信息.

                I've provided some links with further information on the views and querying a SQL Server Catalog.

                http://msdn.microsoft.com/en-us/library/ms186778.aspx

                http://msdn.microsoft.com/en-us/library/ms189082.aspx

                这篇关于SQL Server:我应该在 sys 表上使用 information_schema 表吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

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

                相关文档推荐

                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='dSdWl'></tfoot>
                      <bdo id='dSdWl'></bdo><ul id='dSdWl'></ul>
                      <i id='dSdWl'><tr id='dSdWl'><dt id='dSdWl'><q id='dSdWl'><span id='dSdWl'><b id='dSdWl'><form id='dSdWl'><ins id='dSdWl'></ins><ul id='dSdWl'></ul><sub id='dSdWl'></sub></form><legend id='dSdWl'></legend><bdo id='dSdWl'><pre id='dSdWl'><center id='dSdWl'></center></pre></bdo></b><th id='dSdWl'></th></span></q></dt></tr></i><div id='dSdWl'><tfoot id='dSdWl'></tfoot><dl id='dSdWl'><fieldset id='dSdWl'></fieldset></dl></div>

                          <legend id='dSdWl'><style id='dSdWl'><dir id='dSdWl'><q id='dSdWl'></q></dir></style></legend>
                            <tbody id='dSdWl'></tbody>

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