使用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
相关文章推荐
- 基于CentOS的MySQL学习补充四--使用Shell批量从CSV文件中插入数据到数据表
- 基于CentOS的MySQL学习补充四--使用Shell批量从CSV文件里插入数据到数据表
- 【php】 像mysql中插入数据使用了制表符,取数据时怎么办
- Mysql使用insert插入多条记录 批量新增数据
- JAVA中使用JDBC插入大量mysql中的数据
- MySql 使用foreach标签 批量插入list中数据,主键自增,插入
- 使用php和mysql,数据库显示插入成功,但是数据表内数据为空
- Linux编程 - 使用C在mysql中插入数据
- mysql 使用select插入多条数据,insert into (1,2,3,4,)select(1,2,3,4)
- JAVA中使用JDBC插入大量mysql中的数据
- MySQL使用UNIQUE实现数据不重复插入
- 使用hive向mysql,sqlserver,hbase插入数据
- mysql 使用存储过程分割字符串利用循环插入数据
- MySQL 使用while语句向数据表中批量插入数据
- 使用 MySQLi 向 MySQL 插入、增加数据
- JAVA中使用JDBC插入大量mysql中的数据
- MySQL使用存储过程循环插入数据
- MySQL 使用while语句向数据表中批量插入数据
- 使用myeclipse插入数据到mysql 出现中文乱码|utf8乱码解决方案[适合tomcat部署的jsp应用]
- MySQL使用存储过程批量插入百(千)万测试数据