在 MySQL 中,可以使用 ST_AsText 函数将 point 类型的坐标转换为文本形式,以便查看。

以下是一个示例查询,假设有一个名为 locations 的表,其中包含一个名为 coordinates 的 point 类型列:

SELECT ST_AsText(coordinates) FROM locations;

该查询会将 coordinates 列中的每个点坐标转换为文本形式,并作为结果返回。

MySQL Point 类型查看坐标方法

原文地址: https://www.cveoy.top/t/topic/peJD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录