sqlserver读取插入空间数据

 

 select     (t.shape.STAsText()) as shape,t.id from geotest t order by 1   offset 0 rows fetch next 10 rows only

 

 

INSERT INTO geotest(shape)
VALUES (geometry::STGeomFromText('LINESTRING (100 100, 20 180, 180 180)', 0));

 

posted @ 2020-04-28 18:20  leechg  阅读(331)  评论(0编辑  收藏  举报