Basic HTML version of Foils prepared 23 June 1997

Foil 51 Example - Using Weblogic's Oracle Driver -III

From Overview of JDBC and its use with Microsoft Access UC Web Applications Certificate -- June 26 97. by Nancy McCracken(Sangetta Aggarwal, Udayan Parvate, Tom Pulikal)


//display the metadata information like max size. column type name etc.
for (int i = 1; i &#060= rsmd.getColumnCount(); i++) {
System.out.println("Column Name :" + rsmd.getColumnName(i));
System.out.println("Nullable :" + rsmd.isNullable(i));
System.out.println("Precision :" + rsmd.getPrecision(i));
System.out.println("Scale :" + rsmd.getScale(i));
System.out.println("Size :" + rsmd.getColumnDisplaySize(i));
System.out.println("Column Type :" + rsmd.getColumnType(i));
System.out.println("ColType Name :" + rsmd.getColumnTypeName(i));
System.out.println(" ");
}
//close the query connection states and then close the database connection
stmt.close();
conn.close();
} // end main
} // end myTest class



© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Thu Jan 8 1998