摘要: with cte as( select bianma,fjbm from #tree where chkDisabled='true' union all select t.bianma,t.fjbm from cte c inner join #tree t on c.fjbm=t.bianma ) select * from cte; 阅读全文
posted @ 2017-10-19 18:06 成宇佳 阅读(962) 评论(0) 推荐(0) 编辑
摘要: declare @tname nvarchar(255)=N'要修改的表名'; --修改所有以sl结尾的列名的小数位数为4位 select syscolumns.name into #t1 from syscolumns,systypes where syscolumns.xusertype = systypes.xusertype and syscolumns.id = object_i... 阅读全文
posted @ 2017-10-19 17:46 成宇佳 阅读(1053) 评论(0) 推荐(0) 编辑