创建函数

create procedure names()
     begin
        declare i int default 0;
       while i < 3000 do
							
						INSERT INTO student2 (names) VALUES (i);
            set i = i + 1;
        end while;
    end #

使用函数

call names();

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2021-09-22
  • 2021-04-29
  • 2021-07-22
猜你喜欢
  • 2022-12-23
  • 2021-09-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-04
  • 2022-12-23
相关资源
相似解决方案