Chapter 13. PostgreSQL JDBC
Java Database Connectivity (JDBC) is an API that a user allows to connect to a database from within a Java application in a standardized way. The API is independent of a specific database vendor, and allows creation of applications that can easily be adapted for use with different databases.
This chapter describes the way to use JDBC for connecting to a database, and using a PostgreSQL database from within a Java application.
After discussing how to install and initialize the PostgreSQL JDBC driver and opening a connection to a database, the fundamental concepts and features of the JDBC API will be explained.
This chapter covers executing the basic SQL statements introduced in Chapter 5, SQL Language, from within Java ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access