create procedure pFastCreateNums (cnt int unsigned)
begin
declare s int unsigned default 1;
truncate table nums;
insert into nums select s;
while s2 <= cnt do
begin
insert into nums select a+s from nums;
set s = s
2;
end;
end while;
end;

相关文章:

  • 2021-11-20
  • 2022-02-23
  • 2021-11-13
  • 2021-11-03
  • 2021-11-03
  • 2021-11-04
猜你喜欢
  • 2021-12-13
  • 2021-11-03
  • 2021-05-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
相关资源
相似解决方案