欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

為數(shù)據(jù)庫生成某個字段充填隨機數(shù)的存儲過程

 更新時間:2010年05月13日 19:56:34   作者:  
為數(shù)據(jù)庫生成某個字段充填隨機數(shù)
復(fù)制代碼 代碼如下:

Declare @CurrentRecord int,@BeginNum int, @EndNum int, @TotalCount int,@Value int
set @BeginNum=0
set @EndNum=500
set @TotalCount=80
set @CurrentRecord=1
While @CurrentRecord<=@TotalCount
Begin
set @Value= @BeginNum+(@EndNum - @BeginNum)*rand()
update [tableName] set [columnName] = @Value where [IDColumnName] = @CurrentRecord
set @CurrentRecord=@CurrentRecord+1
End

相關(guān)文章

最新評論