Condividi tramite


STIsEmpty (tipo di dati geography)

Restituisce 1 se un'istanza geography è vuota. Restituisce 0 se un'istanza geography non è vuota.

Sintassi

.STIsEmpty ( )

Tipi restituiti

Tipo SQL Server restituito: bit

Tipo CLR restituito: SqlBoolean

Esempi

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

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

Vedere anche

Altre risorse