标签:str text rom cat ast from 数据类型 查询 mysq
SELECT
*,
AsText(location) as 原始坐标数据,
(st_distance(location, point(116.397915,39.908946))*111) AS distance
FROM
oc_district
HAVING
distance<100
ORDER BY
distance limit 100;
标签:str text rom cat ast from 数据类型 查询 mysq
原文地址:https://www.cnblogs.com/Soy-technology/p/10981124.html