Aracılığıyla paylaş


Kümelenmiş Dizin Ekle Showplan işleç

The Clustered Index Insert Showplan operator inserts rows from its input into the clustered index specified in the Argument column.The Argument column also contains a SET:() Doðrulama, her sütun için küme değer gösterir.If Clustered Index Insert has no children for insert values, the row inserted is taken from the Insert operator itself.

Clustered Index Insert fiziksel bir işleç olur.

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

Örnekler

Aşağıdaki örnek bir satıra ekler bir tablo , kümelenmiş dizin vardır.Yürütme planı çıktı sorgu iyileştiricisi kullandığını gösterir Clustered Index Insert işleç satır eklemek için.

USE AdventureWorks2008R2;
GO
SET NOCOUNT ON;
GO
SET SHOWPLAN_ALL ON;
GO
INSERT INTO Production.UnitMeasure
VALUES (N'F2', N'Square Feet', GETDATE());
GO

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

PhysicalOp

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

Clustered Index Insert

Argument

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

OBJECT:([AdventureWorks2008R2].[Production].[UnitMeasure].[PK_UnitMeasure_UnitMeasureCode]),

OBJECT:([AdventureWorks2008R2].[Production].[UnitMeasure].[AK_UnitMeasure_Name]),

SET:([AdventureWorks2008R2].[Production].[UnitMeasure].[UnitMeasureCode] =

RaiseIfNull([Expr1003]),[AdventureWorks2008R2].[Production].[UnitMeasure].[Name] =

RaiseIfNull([Expr1004]),[AdventureWorks2008R2].[Production].[UnitMeasure].[ModifiedDate] = RaiseIfNull(getdate())),

DEFINE:([Expr1003]=CONVERT_IMPLICIT(nchar(3),[@1],0),

[Expr1004]=CONVERT_IMPLICIT(nvarchar(50),[@2],0), [ConstExpr1006]=getdate())