MYSQL 查询指定范围内的经纬度
时间:2018-08-24 13:16:09
收藏:0
阅读:942
select * from `location` where ( acos( sin(([#latitude#]*3.1415)/180) * sin((latitude*3.1415)/180) + cos(([#latitude#]*3.1415)/180) * cos((latitude*3.1415)/180) * cos(([#longitude#]*3.1415)/180 - (longitude*3.1415)/180) )*6370.996 )<=1;
评论(0)