◀
Previous
Slide 7.1: A sample JDBC program
Slide 7.3: Importing packages
Home
Print version
▶
Next
A Typical JDBC API Usage Sequence
The JDBC API makes it possible to do three things:
Establish a connection with a database.
Send SQL statements.
Process the results.
The following tasks connect to and query a database from the client:
Import packages.
Register the JDBC drivers.
Open a connection to a database.
Create a statement object.
Execute a query and return a result set object.
Process the result set.
Close the result set and statement objects.
Make changes to the database.
Commit changes.
Close the connection.
You must supply Oracle driver-specific information for the first three tasks, which allow your program to use the JDBC API to access a database.
◀
Previous
Slide 7.1: A sample JDBC program
Slide 7.3: Importing packages
Home
Print version
▶
Next
How many Germans does it take to screw in a lightbulb?
One, they’re efficient and not very funny.