sqlserver limit

select  Loaction.Lat,Loaction.Long  from Company order by  CompanyId  OFFSET 4 ROWS FETCH NEXT 2 ROWS ONLY

  距离计算:

select CompanyId,CAST(Loaction.STDistance(geography::Point(22.553731,114.070112,4326)) as int) as 距离   from Company ;

update Company set Loaction=geography::Point(22.586903,114.076436,4326) where CompanyId=1

  http://api.map.baidu.com/lbsapi/getpoint/index.html

posted @ 2015-03-17 14:31  usday  阅读(1402)  评论(0编辑  收藏  举报