Condividi tramite


STIsEmpty (tipo di dati geometry)

Si applica a:SQL ServerAzure SQL DatabaseAzure SQL Istanza gestitaDatabase SQL in Microsoft Fabric

Restituisce 1 se l'istanza geometry è vuota. Restituisce 0 se l'istanza geometry non è vuota.

Syntax

  
.STIsEmpty ( )  

Tipi restituiti

Tipo SQL Server restituito: bit

Tipo CLR restituito: SqlBoolean

Examples

Nell'esempio seguente viene creata un'istanza vuota geometry e viene utilizzato STIsEmpty() per verificare se l'istanza è vuota.

DECLARE @g geometry;  
SET @g = geometry::STGeomFromText('POLYGON EMPTY', 0);  
SELECT @g.STIsEmpty();  

Vedere anche

Metodi OGC sulle istanze di geometria