Chapter 22. JDBC

Topics in This Chapter

  • The seven basic steps in connecting to databases

  • Basic database retrieval example

  • Some utilities that simplify JDBC usage

  • Classes to retrieve and display database results using both plain text and HTML

  • An interactive graphical query viewer

  • Precompiled queries

JDBC provides a standard library for accessing relational databases. Using the JDBC API, you can access a wide variety of different SQL databases with exactly the same Java syntax. However, it is important to note that, although JDBC standardizes the mechanism for connecting to databases, the syntax for sending queries and committing transactions, and the data structure representing the result, it does not attempt to standardize the SQL syntax. So, you ...

Get Core Web Programming, Second 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.