数据随机填充问题 表设计时,给字段默认100*rand() 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 declare @i intdeclare @s intselect @s = count(*) from table1set @i = 1while @i <= @sbegin update table1 set sicol = cast(rand(@i) * 10000 as int) set @i = @i + 1end update 你的表 set 你的列=isnull(你的列,cast(rand(checksum(newid()))*1000 as int)) 传一条件字符串给存储过程,帮忙调忙 求一存储过程,单表(4个字段),救急.在线急等. SQL2005 怎么没有查询窗口? sql2005远程连接不能用实例名只能用ip 问一个数据库设计问题 关于数据库的备份 我是新手 请问SQLserver和Oracle 学哪个好? 在存储过程中怎么定义数组???? 为什么不能UPDATE?特奇怪!!! 自己的写的存储过程定义的临时表数据如何返回给程序recordset? 多表提高查询速度? 要把同一个机里的一个数据的字段用另的个数据库的字段更新怎么做呢?
declare @s int
select @s = count(*) from table1
set @i = 1
while @i <= @s
begin
update table1 set sicol = cast(rand(@i) * 10000 as int)
set @i = @i + 1
end