1 向数据库中插入1000条记录
use db1;
DROP PROCEDURE IF EXISTS proc_initData;
DELIMITER $
CREATE PROCEDURE proc_initData()
BEGIN
DECLARE i INT DEFAULT 1;
WHILE i<=1000 DO
INSERT INTO feed(user_id,identity,content) VALUES('1','1','哈哈');
SET i = i+1;
END WHILE;
END $
DELIMITER ;
CALL proc_initData();