sql 随机数例子

 

declare @c int
set @c = 1

while (@c < 13734)

begin
declare @b int
set @b = (select castfloor(rand()*5as int) a)
set @c = @c+1
update dbo.SmsInfo set uploadCount = @b where smsId = @c
end

posted on 2009-05-22 09:37  seaven  阅读(208)  评论(0)    收藏  举报

导航