Result Set not updatable

来源:互联网 发布:兰德马克软件招聘 编辑:程序博客网 时间:2024/04/26 20:22
com.mysql.jdbc.NotUpdatable: Result Set not updatable (referenced table has no primary keys).This result set must come from a statement that was created with a result set type of ResultSet.CONCUR_UPDATABLE, the query must select only one table, can not use functions and must select all primary keys from that table. See the JDBC 2.1 API Specification, section 5.6 for more details.
at com.mysql.jdbc.UpdatableResultSet.generateStatements(UpdatableResultSet.java:628)
at com.mysql.jdbc.UpdatableResultSet.syncUpdate(UpdatableResultSet.java:1537)
at com.mysql.jdbc.UpdatableResultSet.updateString(UpdatableResultSet.java:2493)

at com.mysql.jdbc.UpdatableResultSet.updateString(UpdatableResultSet.java:2531)



表没有加主键导致。

原创粉丝点击