Chapter 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 programs 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 database into your applications.

Today you explore JDBC and Extensible Markup Language (XML) in the following ways:

  • Using JDBC drivers to work with different relational databases

  • Accessing a database with Structured Query Language (SQL)

  • Reading records ...

Get Sams Teach Yourself Java™ 6 in 21 Days 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.