Files
2020-06-30 14:58:21 +08:00

32 lines
817 B
Markdown

---
layout: default_docs
title: Chapter 3. Initializing the Driver
header: Chapter 3. Initializing the Driver
resource: media
previoustitle: Creating a Database
previous: your-database.html
nexttitle: Chapter 3. Loading the Driver
next: load.html
---
**Table of Contents**
* [Importing JDBC](use.html#import)
* [Loading the Driver](load.html)
* [Connecting to the Databas](connect.html)
* [Connection Parameters](connect.html#connection-parameters)
This section describes how to load and initialize the JDBC driver in your programs.
<a name="import"></a>
# 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.