mysql的point类型查询处理

mysql的point类型,很蛋疼的表示更习惯于key—value的lng,lat

假设不得不处理数据库字段poi是point类型,其中的数据为 : POINT(28.2789745229671 110.827382004967)

我们可以直接用 : select y(poi),x(poi) from table; 这种方法直接获取lng,lat

原文地址:https://www.cnblogs.com/fireyjy/p/5009628.html