![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
jdbc
大大的笑声
这个作者很懒,什么都没留下…
展开
-
JDBC工具类的两种写法
小配置文件:jdbc.properties driverClass=oracle.jdbc.driver.OracleDriver url=jdbc:oracle:thin:@localhost:1521:xe username=hr password=hr 1.工具类只提供Connection对象静态方法和释放资源静态方法 工具类:JDBCUtil package com....原创 2020-03-31 19:52:40 · 815 阅读 · 0 评论 -
PreparedStatement与Statement区别
PreparedStatement是Statement的子类 PreParedStatement支持SQL语句预编译,支持设置占位符(防止SQL注入)原创 2020-03-24 20:33:53 · 83 阅读 · 0 评论