well everyone i apolozise for frequent post. but its worth.
when i used scrollable result set coding - i faced the error - before start
use result set(during runtime).here is the code in my programm :
=================================
public static void main (
String arg[]) {
try {
Connection c = DriverManager ......................
Statement st = c.createStatement( ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_UPDATABLE);
ResultSet r = st.executeQuery("SELECT * FROM riyaz WHERE name = 'fayaz' ");
r = st.executeQuery("SELECT * FROM riyaz WHERE name = 'fayaz' ");
Integer marks = r.getInt("marks");
r.updateInt("marks", 20 +marks );
r.updateRow();
====================================
i kindly need the sollution for the above.
riyaz
scjp1.4