Join David Gassner for an in-depth discussion in this video What is JDBC?, part of Java Database Integration with JDBC.
- View Offline
In this video series, I describe how to integrate applications built with the Java programming…language with relational databases using JDBC, and I'm going to start by describing the nature…and history of JDBC and how it fits into the larger Java World.…JDBC is an API, a set of interfaces and classes that let you easily connect to relational…databases, such as Oracle, SQL Server, MySQL, and many others.…It was originally known as Java Database Connectivity, but more recently it's been known by simply the acronym JDBC.…
JDBC was introduced into the Java programming language very early.…It was included in JDK1.1 in 1997, and has been a part of all releases of Java Standard Edition ever since.…The history of JDBC is a history of added features and improved performance.…The original release in 1997 included the main classes and interfaces that you'll find…yourself using all the time, including the Connection interface which lets you make your…initial connection to a database, the Statement which encapsulate SQL code, and ResultSet…
Author David Gassner explains how to choose a JDBC driver and connect to one or more databases. He also provides detailed instructions on reading, selecting, and updating data; calling stored procedures; managing data via JavaBean classes or with prepared statements; and working with metadata.
- Importing a MySQL database
- Connecting to databases
- Handling JDBC exceptions
- Looping through result sets
- Limiting the number of fetched rows
- Filtering data with prepared statements
- Calling stored procedures
- Inserting, updating, and deleting rows with prepared statements
- Using a persistent database connection
- Committing and rolling back transactions