JDBC lecture - January29
Will Sexton
&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
JDBC - the four steps
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
create the connection object:
Connection c = DriverManager.getConnection(url, name, pass)
create the Statement object from
the connection:
Statement s = c.createStatement()
execute the query and store the
results in a result set object:
ResultSet rs = s.executeQuery(query)
&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%&%
COMP190-25
Home Page
Will Sexton's
CS190 Course Page
Will
Sexton's Home Page