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');

     

原文地址:https://www.cnblogs.com/JiangLe/p/4032890.html