關於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<
相關文章
相關標籤/搜索