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;
补充:
字符串变整数
ONVERT(‘123‘,SIGNED);
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;
补充:
字符串变整数
ONVERT(‘123‘,SIGNED);