Chapter 28. Connecting to Databases Through JDBC

Java Database Connectivity, or JDBC, is a class library that is used to work with different relational databases from within Java, including proprietary data formats from Microsoft, Sybase, Oracle, Informix, and many others.

After 27 days of hard work exploring the Java 2 class library, you deserve some good news: Today's subject is one of the easier ones to implement in your Java programs. The JDBC library has only a small set of methods and classes that are needed to read and write database records.

Unfortunately, there's a catch.

Before you can use the JDBC class library, you must configure a data source so that it can be reached from within Java. This is often the most difficult part of the process. ...

Get Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition 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.