---
title: "数据库连接的一般过程"
author: "虚弱的java"
date: "2014-06-24T08:34:20Z"
tags: []
categories: ["数据库"]
slug: "untitled"
draft: false
lastmod: "2014-06-24T08:34:20Z"
id: 2084179
url: "https://appleblue.iteye.com/blog/2084179"
---

1、加载数据库驱动程序

2、定义数据库连接URL

3、建立连接

4、创建statement对象

5、执行查询或更新

6、结果处理

7、关闭连接