跳到主要内容

ST_STARTPOINT

Introduced or updated: v1.2.458

Returns the first Point in a LineString.

Syntax

ST_STARTPOINT(<geometry>)

Arguments

ArgumentsDescription
<geometry>The argument must be an expression of type GEOMETRY that represents a LineString.

Return Type

Geometry.

Examples

SELECT
ST_STARTPOINT(
ST_GEOMETRYFROMWKT(
'LINESTRING(1 1, 2 2, 3 3, 4 4)'
)
) AS pipeline_endpoint;

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