mysql批量插入

DELIMITER $$
CREATE PROCEDURE InsertValueWithWhile()
BEGIN
declare _End int default 0;
while (_End < 100) do
INSERT INTO emp(empName) VALUES( _End );
set _End = _End +1;
end while;
END $$
DELIMITER ;

call InsertValueWithWhile();
posted @ 2013-08-29 20:42  helloweworld  阅读(240)  评论(0编辑  收藏  举报