Aracılığıyla paylaş


Kümelenmiş dizin tarama Showplan işleç

The Clustered Index Scan operator scans the clustered index specified in the Argument column of the query execution plan.İsteğe bağlı bir where:(), yüklemi varsa, yüklemi karşılayan satırlar döndürülür.If the Argument column contains the ORDERED clause, the query processor has requested that the output of the rows be returned in the order in which the clustered index has sorted it.Sipariş edilen yan tümce tümce tümce yoksa, depolama motoru mutlaka çıktısını sıralama olmadan en iyi şekilde, dizini tarar.

Clustered Index Scan mantıksal ve fiziksel işleç olur.

Kümelenmiş dizin tarama işleci simgesiGrafik yürütme planı simgesi

Örnekler

Aşağıdaki örnek sorgular bir tablo , kümelenmiş dizin vardır.Yürütme planı çıktı sorgu iyileştiricisi kullandığını gösterir Clustered Index Scan işleç alma belirtilen satır.

USE AdventureWorks2008R2;
GO
SET NOCOUNT ON;
GO
SET SHOWPLAN_ALL ON;
GO
SELECT DISTINCT TransactionType
FROM Production.TransactionHistoryArchive;
GO
SET SHOWPLAN_ALL OFF;
GO

Yürütme planı çıktı, Clustered Index Scan işleç belirinceye altında.

PhysicalOp

-----------------------------------------------------------------------

Clustered Index Scan

Argument

-----------------------------------------------------------------------

OBJECT:([AdventureWorks2008R2].[Production].[TransactionHistoryArchive].[PK_TransactionHistoryArchive_TransactionID])