Basic HTML version of Foils prepared 23 February 97

Foil 12 Example of use

From Overview of Approaches to Java - Database Connectivity Rome Lab Quarterly Review for CIV -- June 28 96. by Konrad Olszewski *

1 ...
2 Connection conn = DriverManager.getConnection( "jdbc:odbc:sales");
3 Statement stmt = conn.createStatement();
4 ResultSet rs = stmt.executeQuery( "SELECT Name, Sales FROM Customers");
5 while (rs.next()) {
6 String name = rs.getString("Name");
7 int sales = rs.getInt("Sales");
8 ...

Table Font Size


© 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 Aug 14 1997