日期:2014-05-16 浏览次数:20822 次
CREATE PROCEDURE `autoInsert`()
BEGIN
DECLARE i int default 10000;
WHILE(i < 20000000) DO
insert into user(name) values (concat("user",i));
SET i = i+1;
END WHILE;
END
调用存储过程
call autoInsert()
删除存储过程
DROP PROCEDURE IF EXISTS `autoInsert`