sql批量修改表名(前缀)--亲测
摘要:
exec sp_msforeachtable @command1=' declare @o sysname,@n sysname select @o=''?'' ,@n=stuff(@o,1,charindex(''].[fg_'',@o)+6,''fgjzw_'') ,@n=left(@n,len(@n)-1) exec sp_rename @o,@n', @whereand=' and o.name like ''fg_%''' d 阅读全文
posted @ 2012-01-08 21:49 恋地高飞 阅读(1130) 评论(0) 推荐(0) 编辑