解决方案:

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

     SQL Server 查看指定表上的索引

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-06-27
  • 2021-07-05
  • 2022-12-23
  • 2021-08-03
  • 2022-12-23
猜你喜欢
  • 2021-10-22
  • 2022-12-23
  • 2021-09-27
  • 2022-01-15
  • 2021-06-22
  • 2022-01-13
  • 2022-02-04
相关资源
相似解决方案