
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 · 259 阅读 · 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 · 251 阅读 · 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 · 332 阅读 · 0 评论