Basic HTML version of Foils prepared 23 June 1997

Foil 54 Example - Using JDBC-ODBC Bridge -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 // Create a Statement object so we can submit
2 // SQL statements to the driver
3 Statement stmt = con.createStatement ();
4 // Submit a query, creating a ResultSet object
5 ResultSet rs = stmt.executeQuery (query);
6 // Display all columns and rows from the result set
7 dispResultSet (rs); // see later
8 // Close the result set
9 rs.close();
10 // Close the statement and then the connection
11 stmt.close();
12 con.close();
13 }

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