跳到主要内容

ST_X

引入或更新: v1.2.458

返回由GEOMETRY对象表示的点的经度(X坐标)。

语法

ST_X(<geometry>)

参数

参数描述
<geometry>参数必须是一个GEOMETRY类型的表达式,并且必须包含一个点。

返回类型

Double。

示例

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

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

Copyright © 2025 The Databend Community. Apache, Apache OpenDAL and OpenDAL are either registered trademarks or trademarks of the Apache Software Foundation.

We use cookies on our site to provide you with better user experience. You can view our Cookies Policy in Privacy Policy .