![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jdbc
yt1037921169
呵呵呵
展开
-
jdbc 基本讲解
1.driverManeger .getconntion(..) 负责连接数据库 2.statement 执行静态数据语句 3.preparedstatement 执行动态sql语句 4.callablestatement 执行存储过程 5executeupdate() 返回的是一个int 值, 可执行 修改,删除,添加 6.executequery() 返回的是原创 2016-09-13 12:13:03 · 185 阅读 · 0 评论 -
jdbc 例子
查询: 连接数据库: public static Connection getconnection(){ Connection con = null; try { //加载驱动 Class.forName("com.mysql.jdbc.Driver"); Stri原创 2016-09-13 11:08:29 · 283 阅读 · 0 评论