Transact-SQL 参考

sysindexkeys

包含索引中的键或列的信息。该表存储在每个数据库中。

列名 数据类型 描述
id int 表 ID
indid smallint 索引 ID
colid smallint 列 ID
keyno smallint 该列在索引中的位置