Connection con; Statement stmt; ; con = new Connection(); stmt = con.createStatement(); stmt.executeUpdate("ANALYZE TABLE " + _tableName + " COMPUTE STATISTICS");