Basic HTML version of Foils prepared 23 June 1997

Foil 50 Example - Using Weblogic's Oracle Driver -II

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 //result set or hit list is obtained after
2 // executing the query
3 //and using a cursor it is displayed
4 ResultSet rs = stmt.getResultSet ( );
5 while (rs.next () ) {
6 System.out.println( rs.getString(1) + "-" +
7 rs.getString(2) + "-" + rs.getString(3) );
8 }
9 //get the metadata using the result set
10 ResultSetMetaData rsmd = rs.getMetaData ();
11 System.out.println("Number of Columns:"
12 + rsmd.getColumnCount() );

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