首页 > 数据库技术 > 详细

A Summaryof JDBC

时间:2015-11-04 17:51:15      阅读:289      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!