随笔分类 -  SQLServer

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: 阅读全文
posted @ 2020-04-28 18:20 leechg 阅读(335) 评论(0) 推荐(0) 编辑
摘要:在SQLServer中执行递归的时候出现错误 #子查父递归With Tree As( SELECT id, parent_id FROM dbo.data_catalog C UNION ALL SELECT P.id, P.parent_id FROM dbo.data_catalog P, Tr 阅读全文
posted @ 2020-04-22 09:53 leechg 阅读(3085) 评论(0) 推荐(0) 编辑
摘要:# 修改字段名称为临时字段 exec sp_rename 'data_config.description', description1,'COLUMN'; # 创建新的字段并设置为目标格式alter table data_config add description text ;# 把临时字段中的 阅读全文
posted @ 2020-04-14 11:45 leechg 阅读(3458) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示