insert:    Location为    Geography类型                INSERT INTO [oss1].[dbo].[Order] ([Location])

VALUES
(
geography :: STGeomFromText (
'POINT(55.9271035250276 -3.29431266523898)',
4326)
)

sql server 对Geography 的增(insert)和查询(select)

 

查询select:select location.Lat ,location.Long from [Order]   //查询 Geography类型的 经(Long)纬(Lat)度:

                                                                                     sql server 对Geography 的增(insert)和查询(select)

 其他复杂查询 如其他文档:https://www.cnblogs.com/ytwy/p/5977848.html

 https://www.liangzl.com/get-article-detail-6302.html

参考文档:https://www.mssqltips.com/sqlservertip/1965/sql-server-geography-data-type/

 

相关文章:

  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
  • 2021-11-15
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-31
  • 2021-09-18
相关资源
相似解决方案