摘要: 完成数据库的连接,就马上要对数据库进行增删改查操作了;先来了解一下Statement 通过JDBC插入数据 (这里提供一个查找和插入方法) Statement:用于执行sql语句的对象; *1.通过Connection 的creatStatement()方法来获取; *2.通过executeUpda 阅读全文
posted @ 2016-09-21 16:35 啄木鸟伍迪 阅读(2491) 评论(0) 推荐(0)
摘要: 连接数据库 1)通过Driver来连接(Driver:数据库厂商提供的一个接口) public void testDriver()throws Exception{ Driver driver = new com.mysql.jdbc.Driver(); String Url = "jdbc:mys 阅读全文
posted @ 2016-09-21 16:08 啄木鸟伍迪 阅读(288) 评论(0) 推荐(0)
//火箭 GenerateContentList();