Basic HTML version of Foils prepared 7 October 97

Foil 19 JDBC 2 Tier Applet

From Overview of JDBC and its use with Microsoft Access ARL Database Tutorial -- February 98. by Nancy McCracken(Sangetta Aggarwal, Udayan Parvate, Tom Pulikal)


1 The SQL query is created and executed.
  • Syntax: PreparedStatement pstmt = conn.prepareStatement("select * from datatable where NAME = ?");
  • ResultSet rs = pstmt.executeQuery();
2 The data is read from the database and passed back to the applet where it is displayed.
3 At the end of the session, the connection to the database is closed.
  • Syntax: conn.close();

in Table To:


© on Mon Oct 13 1997