Udostępnij za pośrednictwem


Clustered Index Delete Showplan Operator

The Clustered Index Delete operator deletes rows from the indeks klastrowany specified in the Argument kolumna of the query execution plan.Jeśli WHERE:() predykat znajduje się w Argument kolumna, a następnie tylko te wiersze, które spełniają predykat są usuwane.

Clustered Index Delete jest operator fizycznych.

Clustered index delete operator iconIkona planu wykonywania graficzny

Przykłady

W następującym przykładzie usunięto wiersz z tabela posiadającej indeks klastrowany.Dane wyjściowe plan wykonania wskazuje, że optymalizator kwerendy używa Clustered Index Delete operator, aby usunąć wiersz.

USE AdventureWorks;
GO
SET NOCOUNT ON;
GO
SET SHOWPLAN_ALL ON;
GO
DELETE FROM Production.UnitMeasure
WHERE UnitMeasureCode = 'F2';
GO
SET SHOWPLAN_ALL OFF;

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

PhysicalOp 
-----------------------------------------------------------------------
Clustered Index Delete

Argument
-----------------------------------------------------------------------
OBJECT:([AdventureWorks].[Production].[UnitMeasure].[PK_UnitMeasure_UnitMeasureCode]), 
OBJECT:([AdventureWorks].[Production].[UnitMeasure].[AK_UnitMeasure_Name]), 
WHERE:([AdventureWorks].[Production].[UnitMeasure].[UnitMeasureCode]
    =CONVERT_IMPLICIT(nvarchar(4000),[@1],0))