當前所處在的位置(113.858202 , 22.583819 ),須要查詢我附近1000米內的小區,並安裝由近到遠的順序排列 查詢
SELECT
s.id,s.name,s.lng,s.lat,di
round ((st_distance (point (lng, lat),point(113.858202,22.583819) ) / 0.0111)*1000) AS distance
FROM
wlsq_base.lt spoi
HAVING distance<10
ORDER BY distance