No SELECTt is used to obtain cluster index information in the SQLServer database. name [Table name], ix. name [Cluster Index name], c. name [clustering index includes fields] fromsys. indexesixINNERJOINsys. tablestONix. object_idt.object_idANDix.type_descCLUSTEREDANDt.typeUINNERJOIN
No SELECT t is used to obtain cluster index information in the SQLServer database. name [Table name], ix. name [Cluster Index name], c. name [clustering index includes fields] 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
Obtain cluster index information in the SQL Server database <无>
SELECT t. name [Table name], ix. name [Cluster Index name], c. name [clustering index includes fields] 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 sys. index_columns ic ON ic. index_id = ix. index_id and ix. object_id = ic. object_idINNER JOIN sys. columns c ON ic. column_id = c. column_id and ic. object_id = c. object_idORDER BY [Table name]?