JiangLe

SQL Server 查看指定表上的索引

解决方案:

            sys.indexs;

----------------------------------------------------------------------------------------------------------------------------------

前期准备:

            建表、

                  create table T(X int primary key,Y int);
                  go

            建索引
                  create index ix_for_T_y on T(Y);
                  go

-------------------------------------------------

例子:

      查看表中的索引

      select * from sys.indexs where object_id = OBJECT_ID(\'T\');

     

 

分类:

技术点:

相关文章:

  • 2021-12-05
  • 2021-12-03
  • 2021-12-26
  • 2021-12-16
  • 2022-02-07
  • 2021-11-20
  • 2021-11-19
  • 2021-12-07
猜你喜欢
  • 2022-02-04
  • 2022-01-24
  • 2021-12-10
  • 2021-09-21
  • 2021-12-09
  • 2021-12-02
  • 2021-12-09
相关资源
相似解决方案