sql 随机数例子
declare @c int
set @c = 1
while (@c < 13734)
begin
declare @b int
set @b = (select cast( floor(rand()*5) as int) a)
set @c = @c+1
update dbo.SmsInfo set uploadCount = @b where smsId = @c
end
set @c = 1
while (@c < 13734)
begin
declare @b int
set @b = (select cast( floor(rand()*5) as int) a)
set @c = @c+1
update dbo.SmsInfo set uploadCount = @b where smsId = @c
end
浙公网安备 33010602011771号