select lat,lng from gpsTable where (lat-34.12)*(lat-34.12)+(lng-113.123)*(lng-113.123)<=(0.01*5)*(0.01*5) 34.12,113.123是中心点的gps位置。 5是公里数
select lat,lng from gpsTable where ABS(lat-34.12)+ABS(lng-113.123)<=(0.01*5)
select lat,lng from gpsTable where (lat-34.12)*(lat-34.12)+(lng-113.123)*(lng-113.123)<=(0.01*5)*(0.01*5) 34.12,113.123是中心点的gps位置。 5是公里数
select lat,lng from gpsTable where ABS(lat-34.12)+ABS(lng-113.123)<=(0.01*5)