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)