JDBC
super_ozman
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
JDBC初步
Java Data Base Connectivity JDBC编程步骤: 1.Load the Driver Class.forName() | Class.forName().newInstance() | new DriverName() 2.Connect to Database DriverManager.getConnection() 3.Execute SQL原创 2015-07-02 10:49:16 · 279 阅读 · 0 评论 -
JDBC---PreparedStatement
PreparedStatement继承自Statement,可以预先创建好SQL语句,然后传入参数值 public class TestPreparedStatement{ public void testPreparedStatement() throws Exception{ Class.forName("com.mysql.jdbc.Driver"); Connection原创 2015-07-03 14:51:06 · 270 阅读 · 0 评论 -
JDBC批处理
jdbc批处理示例 public class TestBatch { public void testBatch() throws Exception{ Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection( "jdbc:mysql://localhost:3原创 2015-07-03 15:35:32 · 348 阅读 · 0 评论
分享