如 表archives 有数据
id title type 1 有人 44
2 一些 56
3 人类 44
4 鸟类 55
...在type中 插入 1到10000的数。。间隔为5得到的表为1 有人 1
2 一些 5
3 人类 10
4 鸟类 15
...这条语句怎么写啊?
id title type 1 有人 44
2 一些 56
3 人类 44
4 鸟类 55
...在type中 插入 1到10000的数。。间隔为5得到的表为1 有人 1
2 一些 5
3 人类 10
4 鸟类 15
...这条语句怎么写啊?
insert into type values(id,title,(@step:=@step*5));
insert into type values(id,title,(@step:=(@step+1))*5);
set @i=0;
update archives set type=(select @i:=@i+5);