獲取SQLServer數據庫中的聚簇索引信息 無 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數據庫中的聚簇索引信息 <無> $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 [表名] ?
聲明:本網頁內容旨在傳播知識,若有侵權等問題請及時與本網聯系,我們將在第一時間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com