PP Presentation

while (rs.next()) {

int a = rs.getInteger(1);

Numeric b=rs.getNumeric(2);

char c[] = rs.getVarChar(3).tocharArray();

boolean d=rs.getBit(4);

String key=rs.getVarChar(5);

System.out.print("Key="+key);

System.out.print("a="+a);

System.out.print("b="+b);

System.out.print("c=");

for (int I=0; I < c.length; I++) {

System.out.print(c[I]);

}

System.out.print("d="+d);

System.out.print("\n");

}

stmt.close();

con.close();

} catch (java.lang.Exception ex) {

ex.printStackTrace();

}

Previous slide Next slide Back to the first slide View Graphic Version

Notes: