【发布时间】:2017-04-17 20:10:56
【问题描述】:
我正在尝试从 Eclipse 更新数据库。数据库会更新,但是java程序会在数据库更新后抛出SQLException。
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
【问题讨论】:
标签: java eclipse postgresql jdbc