Hi everyone. I'm using JDBC 2.0 to write an class in Java that connects to a mySQL database (through the Connector/J driver). When I try to execute the code below it throws an exception that my ResultSet in not updatable. I understand that this might have to do with setting the Primary Key, etc. but I'm not sure how to do this in Java. Any help would be greatly appreciated!

J. Ciolkosz

try{
stmt = con.createStatement(ResultSet.TYPE_SCROLL_INSENSIT IVE,ResultSet.CONCUR_READ_ONLY);
srs.absolute(position);
element = srs.getString(field);
}catch(SQLException ex){
System.err.println("----SQLException----");
System.err.println("SQLState: " + ex.getSQLState());
System.err.println("Message: " + ex.getMessage());
System.err.println("Vendor: " + ex.getErrorCode());}