Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void performBatch(Connection conn, String path)
- {
- String sautDeLigne = ";";
- try (final Reader reader = Files.newBufferedReader(Paths.get(path), StandardCharsets.UTF_8);
- final Statement stmt = conn.createStatement()) { // Java 7+8
- for (String str = null; (str = in.readLine()) != null; ) {
- stmt.execute(str);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement