mysql 空间数据类型(point)如何在查询后解释出?


如题,最近在学习mysql关于gis方面的东西,建立了point类型的字段后插入成了point(x,y),但是在php中打印却成了乱码,请问如何将point类型的数据正确取出?

php thinkphp mysql

hedihua 8 years, 12 months ago

用以下方法可以得到非乱码:
select AsText(point) from T;

疾风D悠月つ answered 8 years, 12 months ago

Your Answer