O'Reilly logo

Sams Teach Yourself Java™ 2 Platform in 21 Days Professional Reference Edition by Rogers Cadenhead, Laura Lemay

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required