Error in updating record - Please help
Can anyone please help to explain why there's such error message? (I copy this code from the textbook.)
******
Root cause:
java.lang.ArrayIndexOutOfBoundsException
*****
<%
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con = DriverManager.getConnection("jdbc:odbc:mydatabase777");
Statement updStmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
ResultSet updRs = updStmt.executeQuery("SELECT * FROM Employees");
updRs.moveToInsertRow();
updRs.updateInt("employee_id",104);
updRs.updateString("name","George");
updRs.updateInt("extension",1871);
updRs.insertRow();
con.close();
%>

