原文地址:http://blog.chinaunix.net/uid-26602509-id-4465799.html
select ACOS(SIN(('.$lat.' * 3.1415) / 180) * SIN((latitude * 3.1415) / 180) +
COS(('.$lat.' * 3.1415) / 180) * COS((latitude * 3.1415) / 180) *
COS(('.$lon.' * 3.1415) / 180 - (longitude * 3.1415) / 180)) * 6380
from dual
其它资料:http://www.open-open.com/lib/view/open1421650750328.html