浙林龙哥

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

declare @ID int
set @ID = 10000
while @ID < 20000
begin

 declare @location varchar(1000)
 declare   @i   int  
 set @location = ''
   set   @i=0  
   while   @i<1000  
   begin  
        set   @location = @location + char(33 + cast(ceiling(rand() * 80) as int))
  set @i = @i+1
   end  
 
  select @location
 
 Update ITA_Issue set [Description] = @location where IssueId=@ID

set @ID = @ID +1
end

posted on 2008-10-06 09:27  浙林龙哥  阅读(936)  评论(0编辑  收藏  举报