在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
复制代码 代码如下: 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 |
请发表评论