0
eclipseからデータベースを更新しようとしています。データベースは更新されますが、データベースが更新された後にjavaプログラムはSQLExceptionをスローします。eclipseのSQL更新ステートメントはデータベースを更新しますが、SQL例外をスローします
Statement stmnt = null;
Connection connection = establishConnection();
stmnt = connection.createStatement();
stmnt.executeQuery("UPDATE table1 SET column2='"+description+"' WHERE column1='"+id+"'");
これは、コンソールに印刷されているものです。
org.postgresql.util.PSQLException: No results were returned by the query
これを確認してください: http://stackoverflow.com/questions/21276059/no-results-returned-by-the-query-error-in-postgresql –