时间:2021-07-01 10:21:17 帮助过:42人阅读
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;
本文出自 “枷罗博客” 博客,转载请与作者联系!
mysql having的意义
标签:having mysql