獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息
來源:懂視網(wǎng)
責(zé)編:小采
時間:2020-11-09 16:09:46
獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息
獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息:獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息 無 SELECT t.name [表名],ix.name [聚簇索引名稱],c.name [聚簇索引包括字段] from sys.indexes ixINNER JOIN sys.tables t ON ix.object_id = t.object_id AND ix.type_d
導(dǎo)讀獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息:獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息 無 SELECT t.name [表名],ix.name [聚簇索引名稱],c.name [聚簇索引包括字段] from sys.indexes ixINNER JOIN sys.tables t ON ix.object_id = t.object_id AND ix.type_d

獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息 無 SELECT t.name [表名],ix.name [聚簇索引名稱],c.name [聚簇索引包括字段] from sys.indexes ixINNER JOIN sys.tables t ON ix.object_id = t.object_id AND ix.type_desc = 'CLUSTERED' AND t.type = 'U'INNER JOIN
獲取SQL Server數(shù)據(jù)庫中的聚簇索引信息
<無>
$velocityCount-->
SELECT t.name [表名],ix.name [聚簇索引名稱],c.name [聚簇索引包括字段] from sys.indexes ix
INNER JOIN sys.tables t ON ix.object_id = t.object_id AND ix.type_desc = 'CLUSTERED' AND t.type = 'U'
INNER JOIN sys.index_columns ic ON ic.index_id = ix.index_id and ix.object_id = ic.object_id
INNER JOIN sys.columns c ON ic.column_id = c.column_id and ic.object_id = c.object_id
ORDER BY [表名]
?
聲明:本網(wǎng)頁內(nèi)容旨在傳播知識,若有侵權(quán)等問題請及時與本網(wǎng)聯(lián)系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com
獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息
獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息:獲取SQLServer數(shù)據(jù)庫中的聚簇索引信息 無 SELECT t.name [表名],ix.name [聚簇索引名稱],c.name [聚簇索引包括字段] from sys.indexes ixINNER JOIN sys.tables t ON ix.object_id = t.object_id AND ix.type_d