postgresql的一些使用技巧
1、查询位置与某一点的距离(30.185, 120.161)
select earth_distance(ll_to_earth(30.185, 120.161),ll_to_earth(latitude,longitude)) as distance
from t_org_location order by distance asc;
2、查询某一位置(30.185, 120.161)
原创
2016-12-29 18:06:43 ·
1878 阅读 ·
0 评论