Mark S Waterbury wrote:

See especially the link "JDBC - Result Sets" on the left.

Their so-called "award-winning tutorial" (what kind of award? The DARWIN Award?) starts out fine, but turns to bupkis when it gets to updating the database:

As soon as their own example code,
gets to
rs.updateDouble( "age", newAge );
it throws
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(
at com.mysql.jdbc.UpdatableResultSet.syncUpdate(
at com.mysql.jdbc.UpdatableResultSet.updateDouble(
at com.mysql.jdbc.UpdatableResultSet.updateDouble(

They provide no direct link to email the author, just a very-low-traffic BBS, and when I signed up and posted my complaint thereon, I got back a message accusing me of spamming the board.

Anybody know of tutorials that actually work, by non-anonymous authors?


This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page