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

Note

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group