創建函數
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();
創建函數
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();
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。