DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 

Chapter 3. Initializing the Driver

Table of Contents

Importing JDBC
Loading the Driver
Connecting to the Database
Connection Parameters

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 using not standard PostgreSQL™ extensions to the JDBC API.