摘要: declare my_cur cursor for select top 5 [name] from sys.objects where type = 'U' and type_desc = 'USER_TABLE'open my_curdeclare @name varchar(50), @count bigintselect @name = '', @count = 0--Fetch next from my_cur into @namewhile @@fetch_status = 0begin declare @sql nvarchar(4 阅读全文
posted @ 2013-12-03 17:30 eesee 阅读(728) 评论(0) 推荐(0) 编辑