码迷,mamicode.com
首页 > 数据库 > 详细

A Summaryof JDBC

时间:2015-11-04 17:53:41      阅读:223      评论:0      收藏:0      [点我收藏+]

标签:

Die Sonne gewinnen!

 

I think it‘s easy to understand what is JDBC used for.

Programer‘s program should be connected to DB.So programer need JDBC to make it easy.

 

 JDBC is a standard interface which is achieved by the manufacturer.

A standard can make thing easy.

 

What should programer do?

just use the interface.

 

Drive Management:

           Driver Manager

Connect Interface:

           Connection

           DatabaseMetaData

Sentence Object Interface:

           Statement

           PreparedStatement

           CallableStatement

Results Interface:

           ResultSet

           ResultSetMetaData

 

JDBC‘s workflow:

           1 load the driver,and establish the connection.

           2 establish sentance object.

           3 execute SQL.

           4 deal with results‘ collection.

           5 close connection.

 

Examples:my two other articles.

A Summaryof JDBC

标签:

原文地址:http://www.cnblogs.com/rixiang/p/4936533.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!