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)


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

in Table To:


© 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