Udostępnij za pośrednictwem


Clustered Index Insert Showplan Operator

The Clustered Index Insert plan wykonania operator inserts rows from its input into the indeks klastrowany specified in the Argument kolumna.The Argument kolumna also contains a zestaw:() predykat, która wskazuje wartość, do której jest ustawiony każdej kolumna. Jeśli Clustered Index Insert nie ma elementów podrzędnych do wstawiania wartości, wstawiany wiersz pochodzi z Insert operator samego siebie.

Clustered Index Insert jest operator fizycznych.

Clustered index insert operator iconIkona planu wykonywania graficzny

Przykłady

W poniższym przykładzie wstawia wiersz do tabela posiadającej indeks klastrowany.Dane wyjściowe plan wykonania wskazuje, że optymalizator kwerendy używa Clustered Index Insert operator, aby wstawić wiersz.

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

Wykonanie planu produkcji Clustered Index Insert operator pojawi się poniżej.

PhysicalOp 
-----------------------------------------------------------------------
Clustered Index Insert

Argument
-----------------------------------------------------------------------
OBJECT:([AdventureWorks].[Production].[UnitMeasure].[PK_UnitMeasure_UnitMeasureCode]),
OBJECT:([AdventureWorks].[Production].[UnitMeasure].[AK_UnitMeasure_Name]), 
SET:([AdventureWorks].[Production].[UnitMeasure].[UnitMeasureCode] = 
RaiseIfNull([Expr1003]),[AdventureWorks].[Production].[UnitMeasure].[Name] = 
RaiseIfNull([Expr1004]),[AdventureWorks].[Production].[UnitMeasure].[ModifiedDate] = RaiseIfNull(getdate())),
DEFINE:([Expr1003]=CONVERT_IMPLICIT(nchar(3),[@1],0), 
[Expr1004]=CONVERT_IMPLICIT(nvarchar(50),[@2],0), [ConstExpr1006]=getdate())