This is my code:
ResultSet rs = statement.executeQuery("select * from page"); PreparedStatement updatepage = mySqlCon.prepareStatement("update enwiki.page set enwiki.page.Text = ? where page_id = ?"); int count = 0; while (rs.next()) { int id = rs.getInt("id"); String text = rs.getString("text"); if(text == null) text = ""; updatepage.setString(1, text); updatepage.setInt(2, id); if(count++ > 10000) { updatepage.executeUpdate(); updatepage.clearBatch(); count = 0; } } updatepage.executeUpdate(); The problem is after the line : updatepage.executeUpdate() is run, I check the database using workbench and I don't see any changes on that table.