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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-26
  • 2021-08-01
  • 2021-11-22
  • 2021-09-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案