> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# ST_Point

> 根据给定的 X、Y 坐标值返回对应的点。

根据经度和纬度构造球面上的点，坐标单位为度。

## 语法

```sql theme={null}
VARCHAR ST_Point(DOUBLE x, DOUBLE y)
```

## 参数说明

`x`: X 坐标值，支持数据类型为 DOUBLE。

`y`: Y 坐标值，支持数据类型为 DOUBLE。

## 返回值说明

返回 `VARCHAR` 类型的旧版几何编码。使用 [ST\_AsText](/documents/cn/4.2/sql-reference/sql-functions/spatial-functions/st_astext.md) 可将其转换成可读的 WKT。

## 示例

```Plain Text theme={null}
MySQL > SELECT ST_AsText(ST_Point(24.7, 56.7));
+---------------------------------+
| st_astext(st_point(24.7, 56.7)) |
+---------------------------------+
| POINT (24.7 56.7)               |
+---------------------------------+
```

## 相关数据类型

[VARCHAR](/documents/cn/4.2/sql-reference/data-types/string-type/VARCHAR.md), [DOUBLE](/documents/cn/4.2/sql-reference/data-types/numeric/DOUBLE.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.