Chapter 3. Initializing the Driver

Table of Contents

This section describes how to load and initialize the JDBC driver in your programs.

Importing JDBC

Any source that uses JDBC needs to import the java.sql package, using:

import java.sql.*;


You should not import the org.postgresql package unless you are not using standard PostgreSQL extensions to the JDBC API.