JDBCでファイルからデータを読み込んでテーブルに挿入
File file = new File( ABSOLUTE_FILEPATH ); try( BufferedReader br = Files.newBufferedReader( Paths.get( file.getAbsolutePath( ) ) , StandardCharsets.UTF_8 ) ){ for( String line; ( line = br.readLine( ) ) != null; ){ stmt.executeUpdate( "insert ignore into TABLENAME (CULUMNNAME) values ('"+ line +"')" ); } }catch( IOException e ){ e.printStackTrace(); }