Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个地理类型的表,我想运行查询以查找特定纬度/经度 25 英里内的所有行。查询会是什么样子来完成这个?
我是这样做的:
select * from local_events where _your_geography_column_.STDistance(geography::Point(_your_lat_,_your_long_, 4326)) < ((_your_miles_ * 1000) * 0.621371192)