Chapter 15. Accessing the Data: An Introduction to JDBC
Java provides a back-end-independent interface to databases called Java DataBase Connectivity classes, or JDBC. We introduce the basics of the system here, and illustrate portability that makes it possible for our application to switch between two different database back ends.
What You Will Learn
We will cover the basics of interaction with a database in Java. This involves
Establishing and tearing down connections to a database
Querying data in the database and reading the results
Performing other database operations that modify data, but do not return data results
We assume that you are familiar with simple SQL constructs.
Introducing JDBC
For many real-world applications, there are copious amounts ...
Get Java™ Application Development on Linux® now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.