หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Applies to:
SQL Server
Azure SQL Database
Azure SQL Managed Instance
SQL database in Microsoft Fabric
Returns 1 (true) if a spatial object contains at least one Z value; otherwise, it returns 0 (false).
Syntax
.HasZ
Return Types
SQL Server return type: bit
CLR return type: Boolean
Remarks
Examples
DECLARE @p GEOMETRY = 'Point(1 1 1 1)'
SELECT @p.HasZ
--Returns: 1 (true)
See Also
Extended Methods on Geometry Instances
Z (geometry Data Type)