您的位置:首页 > 运维架构 > Shell

使用shell批量向mysql中插入数据

2012-08-29 10:46 435 查看
#!/bin/bash

i=1;

while [ $i -le 10000 ]
do
mysql -uroot -proot yantest -e "insert into test(num,insertDate) values($i,now());"
let i=i+1
sleep 0.01
done

exit 0
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: