How to combine multiple LineString rows into a single row collection

前端 未结 2 1638
我寻月下人不归
我寻月下人不归 2021-01-19 06:19

I\'m using SQL Server 2008 and the Geometry datatype to store a list of UK a roads, which I\'ve imported from the Ordanance Survey STRATEGI data set.

Ea

2条回答
  •  生来不讨喜
    2021-01-19 06:46

    In SQL 2012 you can use UnionAggregate

    SELECT geometry::UnionAggregate(shape) FROM Table
    

    or if you have a geography column

    SELECT geography ::UnionAggregate(shape) FROM Table
    

提交回复
热议问题