I am trying to update a database from eclipse. The database will update, however, the java program will throw a SQLException after the database is updated.
Statement stmnt = null;
Connection connection = establishConnection();
stmnt = connection.createStatement();
stmnt.executeQuery("UPDATE table1 SET column2='"+description+"' WHERE column1='"+id+"'");
this is what is printed in the console:
org.postgresql.util.PSQLException: No results were returned by the query