生成大量测试数据脚本
发表于:2025-11-07 作者:千家信息网编辑
千家信息网最后更新 2025年11月07日,生成大量数据来测试:create table t1 (id int not null primary key auto_increment,age int,name varchar(20),creat
千家信息网最后更新 2025年11月07日生成大量测试数据脚本生成大量数据来测试:
create table t1 (id int not null primary key auto_increment,age int,name varchar(20),createtime date);
create index idx_age_name_create on t1(age,name,createtime);
vi create-data.sh
#!/bin/bash
i=1;
MAX_INSERT_ROW_COUNT=$1;
while [ $i -le $MAX_INSERT_ROW_COUNT ]
do
mysql -uroot -p123456 test -e "insert into t1 (name,age,createtime) values ('HELLO$i',$i % 99,NOW());"
d=$(date +%M-%d\ %H\:%m\:%S)
echo "INSERT HELLO $i @@ $d"
i=$(($i+1))
sleep 0.05
done
exit 0
执行:
sh create-data.sh 10000
create table t1 (id int not null primary key auto_increment,age int,name varchar(20),createtime date);
create index idx_age_name_create on t1(age,name,createtime);
vi create-data.sh
#!/bin/bash
i=1;
MAX_INSERT_ROW_COUNT=$1;
while [ $i -le $MAX_INSERT_ROW_COUNT ]
do
mysql -uroot -p123456 test -e "insert into t1 (name,age,createtime) values ('HELLO$i',$i % 99,NOW());"
d=$(date +%M-%d\ %H\:%m\:%S)
echo "INSERT HELLO $i @@ $d"
i=$(($i+1))
sleep 0.05
done
exit 0
执行:
sh create-data.sh 10000
数据
测试
生成
脚本
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
软件开发szcyy
中国是国际网络安全的者
plc与数据库连接教程
成都宽湾网络技术有限公司
计算机科学计算的网络技术
非线编服务器
识别oracle数据库中乱码
数据库的数据一存放在
涪陵计算机网络技术
c将数据写入数据库
陕西游戏软件开发公司有哪些
为科技服务互联网金融上市公司
沙坪坝租房软件开发
英国 网络安全 机构
数据库中的所有数据存储在表中吗
安渡服务器
温州三基网络技术有限公司
软件测试需要看的数据库
电信有几个服务器地址
ice服务器的由来
中国是国际网络安全的者
三大数据库整改
网络安全实训报告留言板
数据库 <>
长沙高坪网络技术经纬像机
云服务器销售提成
vb怎么导入数据库
第六章数据库基础
如何控制数据库插入记录值为最大
打游戏服务器要多少钱