##创建计数器表
create table hit_counter(
slot tinyint unsigned not null primary key,
cnt int unsigned not null
)engine = innodb;##向计数器表中插入100条记录
drop PROCEDURE if exists pro_insert_hit_counter;
create PROCEDURE pro_insert_hit_counter()
BEGIN
DECLARE v1 int default 1;
WHILE v1<=100 do 
insert into hit_counter(slot,cnt) select v1, 0;
set v1 = v1 + 1;
end while;
end;
call pro_insert_hit_counter();##更新计数器表
update hit_counter 
set cnt = cnt + 1
where slot = (select ceil(rand()*100));问题:在更新计数器表的时候产生的结果如下
。影响的结果行不是1,
这是什么情况啊

[SQL] update hit_counter 
set cnt = cnt + 1
where slot = (select ceil(rand()*100));
受影响的行: 0
时间: 0.000s[SQL] update hit_counter 
set cnt = cnt + 1
where slot = (select ceil(rand()*100));
受影响的行: 3
时间: 0.004s[SQL] update hit_counter 
set cnt = cnt + 1
where slot = (select ceil(rand()*100));
受影响的行: 2
时间: 0.004s[SQL] update hit_counter 
set cnt = cnt + 1
where slot = (select ceil(rand()*100));
受影响的行: 0
时间: 0.000s