Home  >  Article  >  Database  >  mysql-刚学JAVA,求个MySQL使用线程池插入表的例子

mysql-刚学JAVA,求个MySQL使用线程池插入表的例子

WBOY
WBOYOriginal
2016-06-06 09:42:171128browse

mysqljava线程池

就只对一个表进行插入,只要 insert into table(number) values(?) ,这个操作就行,
因为我想要插入十万条,百万条数据,次数大了用普通的效率太低了,上网查了都说是用线程池可以提高几倍,找了很久都没有具体例子,有的都是看不懂的。求好人给我个简单的例子,谢谢了!对了,祝大家 新年快乐!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn