利用存储过程批量造数据
2018-02-21 10:47
211 查看
https://www.cnblogs.com/xiaoxitest/p/6242524.html
drop procedure if exists t_add; -- 如果存在t_add 存储过程则删除
create procedure t_add(num int)
begin
declare i int;
set i=0;
while i<num do
insert into sudents values ('',concat('张三',i+1),'男',18,'计算机','北京市海淀区');
insert into score values('',i+1,'计算机','81');
set i=i+1;
end while;
end
call t_add(100000); -- 调用存储过程,插入10万条数据
drop procedure if exists t_add; -- 如果存在t_add 存储过程则删除
create procedure t_add(num int)
begin
declare i int;
set i=0;
while i<num do
insert into sudents values ('',concat('张三',i+1),'男',18,'计算机','北京市海淀区');
insert into score values('',i+1,'计算机','81');
set i=i+1;
end while;
end
call t_add(100000); -- 调用存储过程,插入10万条数据
相关文章推荐
- 利用存储过程批量造数据
- Oracle利用存储过程批量insert造数据和分批提交删除的例子
- mysql利用存储过程批量插入数据
- mysql利用存储过程批量插入数据
- mysql利用存储过程批量插入数据
- 利用存储过程进行批量数据添加
- 利用存储过程批量生成数据
- ASP.NET MVC + EF 利用存储过程读取大数据,1亿数据测试很OK
- 将表里的数据批量生成INSERT语句的存储过程 继续增强版
- mssql 生成‘批量Insert数据的sql语句’的存储过程
- 使用Oracle的存储过程批量插入数据
- MYSQL存储过程:批量更新数据2(产品品牌)
- mysql 利用mysqldump 导入导出表结构、数据、存储过程及函数
- 将表里的数据批量生成INSERT语句的存储过程 增强版
- MSSQL中批量修改数据表和存储过程的所有者
- MYSQL存储过程:批量更新、插入数据、游标
- 通过WebService及存储过程等技术批量初始化系统组织数据
- Oracle 存储过程之批量添加数据
- 利用存储过程导出数据到sql脚本
- 用NaviCat创建存储过程批量添加测试数据