When I run the code below, I am getting exception "Invalid operation for read only resultset: updateFloat" although I am using updatable resultset. Any idea what's causing this? [I am using jdk1.5.0. However, Oracle jdbc driver I am using is meant for jdk1.4]
The following limitations are placed on queries for enhanced result sets. Failure to follow these guidelines will result in the JDBC driver choosing an alternative result set type or concurrency type.
To produce an updatable result set:
* A query can select from only a single table and cannot contain any join operations.
In addition, for inserts to be feasible, the query must select all non-nullable columns and all columns that do not have a default value. * A query cannot use "SELECT * ". (But see the workaround below.) * A query must select table columns only. It cannot select derived columns or aggregates such as the SUM or MAX of a set of columns.
To produce a scroll-sensitive result set:
* A query cannot use "SELECT * ". (But see the workaround below.) * A query can select from only a single table.