当前位置:Gxlcms > mysql > mysql插入10万条数据优化效率

mysql插入10万条数据优化效率

时间:2021-07-01 10:21:17 帮助过:106人阅读

mysql优化

public int addTypes(List babyList) {    String sql = "insert into type (typeid,url) values (?,?) ";    Connection conn = dbhelper.getConnection(driver,url,username,upwd);    int result  = 0;    PreparedStatement stmt =null;    try {        stmt = conn.prepareStatement(sql);        for(int i=0;i

人气教程排行