JDBC_1_2010_03_21(补)
2010-03-21 09:09
232 查看
JDBC
Java Database Connectivity
JDBC简介
SQL语言回顾
JDBC基础编程
JDBC编程高级
DataSource and RowSet
SQL语言回顾
Select
Insert
Create
Delete
Update
Drop
JDBC 编程步骤
1. Load the Driver
(1)Class.forName()|Class.forName().newlnstance()|new DriverName()
(2)实例化时自动向DriverManager注册,不需显示调用DriverManager.registerDriver 方法
2. Connect to the DataBase
(1)DriverManager.getConnectioin()
3. Execute the SQL
(1)Connectioin.CreateStatement()
(2)Statement.executeQuery()
(3)Statement.executeUpdate()
4. Retrieve the result data
(1)循环取得结果 while(rs.next())
5. Show the result data
(1)将数据库中的各种类型转换为java中的类型(getxxx)方法
6. Close
(1)close the resultset / close the statement / close the connectioin
Java Database Connectivity
JDBC简介
SQL语言回顾
JDBC基础编程
JDBC编程高级
DataSource and RowSet
SQL语言回顾
Select
Insert
Create
Delete
Update
Drop
JDBC 编程步骤
1. Load the Driver
(1)Class.forName()|Class.forName().newlnstance()|new DriverName()
(2)实例化时自动向DriverManager注册,不需显示调用DriverManager.registerDriver 方法
2. Connect to the DataBase
(1)DriverManager.getConnectioin()
3. Execute the SQL
(1)Connectioin.CreateStatement()
(2)Statement.executeQuery()
(3)Statement.executeUpdate()
4. Retrieve the result data
(1)循环取得结果 while(rs.next())
5. Show the result data
(1)将数据库中的各种类型转换为java中的类型(getxxx)方法
6. Close
(1)close the resultset / close the statement / close the connectioin
相关文章推荐
- 洛谷P1774 最接近神的人_NOI导刊2010提高(02) [2017年6月计划 线段树03]
- VS 2010 测试功能学习(21) – Bug 68648 : The Love Bug (转)
- 杭州大华面试题目-硬件工程师(2010-03)
- NetBeans 时事通讯(刊号 # 118 - Sep 21, 2010)
- Android学习笔记(21)————利用JDBC连接服务器数据库
- NetBeans 时事通讯(刊号 # 123 - Nov 03, 2010)
- java基础--JDBC--常用的开源实现DBCP--03
- JDBC基础学习笔记_03_jdbc增数据并防止sql注入
- 每日雕蟲一技[2013-03-21]诡异的replace
- 21-Feb-2010
- 2011 年 9 月 29 日 21 时 16 分 03 秒 07 毫秒,天宫一号发射成功!!
- 3/17/10 9:55:59 AM CST: [INFO] User settings file does not exist C:/Documents and Settings/Administrator/.m2/settings.xml 分类: 开发常见问题解决方案 2010-03-17 10:20 3448人阅读 评论(4) 收藏
- Delphi 2010学习笔记(21)---匿名方法---2011-01-26
- 21_03_httpd属性配置
- Java EE WEB工程师培训-JDBC+Servlet+JSP整合开发之03.JDBC Statement(1)
- 03Exchange Server 2010跨站点部署-关于GC域控制器的介绍
- java web 开发初学v_2010_8_21之javascrpt
- NetBeans 时事通讯(刊号 # 118 - Sep 21, 2010)
- NetBeans 时事通讯(刊号 # 123 - Nov 03, 2010)
- thinking in java 21_03