标签:having mysql
SELECT id, (3959 * acos(cos ( radians(78.3232) ) * cos( radians( lat ) ) * cos( radians( lng ) - radians(65.3234) ) + sin ( radians(78.3232) ) * sin( radians( lat ) ) ) ) AS distance
FROM markers
HAVING distance < 30
ORDER BY distance
LIMIT 0 , 20;
本文出自 “枷罗博客” 博客,转载请与作者联系!
标签:having mysql
原文地址:http://jhomephper.blog.51cto.com/8558055/1859363