关于jdbc的批处理(使用statement对象和preparedStatement对象)

使用statement对象进行批处理 1.获取connection对象程序员 Connection conn = JdbcUtils.getConnection(); 2.获取statement对象web Statement st = conn.createStatement(); 3.使用for循环一次插入多个sql语句sql //插入2000条 for(int i = 1;i<
相关文章
相关标签/搜索