Java Reference
In-Depth Information
DAY 18:
Accessing Databases
with JDBC
Almost all Java programs deal with data in some way. You have used
primitive types, objects, arrays, linked lists, and other data structures up
to this point.
Today you work with data in a more sophisticated way by exploring Java
Database Connectivity (JDBC), a class library that connects Java pro-
grams to relational databases.
Java 6 includes Java DB, a small relational database that's part of the
Java Development Kit, making it easier than ever to incorporate a data-
base into your applications.
Today you explore JDBC and Extensible Markup Language (XML) in the fol-
lowing ways:
Using JDBC drivers to work with different relational databases
n
Accessing a database with Structured Query Language (SQL)
n
Reading records from a database using SQL and JDBC
n
Adding records to a database using SQL and JDBC
n
Creating a new Java DB database and reading its records
n
 
Search WWH ::




Custom Search