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-09
  • 2021-09-08
  • 2021-10-19
  • 2021-12-02
  • 2021-11-16
  • 2021-09-17
  • 2021-08-12
  • 2021-12-09
猜你喜欢
  • 2022-02-04
  • 2022-01-24
  • 2021-10-12
  • 2021-10-16
  • 2021-11-01
  • 2021-12-10
  • 2021-09-21
相关资源
相似解决方案