begin
declare i int;
i :=1;
for i in 1..10 loop
insert into table_name values (i,now());
i=i+1;
end loop;
end;
补充:
字符串变整数
CONVERT('123',SIGNED);