跳到主要内容

ST_X

Introduced or updated: v1.2.458

Returns the longitude (X coordinate) of a Point represented by a GEOMETRY object.

Syntax

ST_X(<geometry>)

Arguments

ArgumentsDescription
<geometry>The argument must be an expression of type GEOMETRY and must contain a Point.

Return Type

Double.

Examples

SELECT
ST_X(
ST_MAKEGEOMPOINT(
37.5, 45.5
)
) AS pipeline_x;

┌────────────┐
│ pipeline_x │
├────────────┤
37.5
└────────────┘
开始使用 Databend Cloud
低成本
快速分析
多种数据源
弹性扩展
注册