会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
IT特工
博客园
首页
新随笔
联系
订阅
管理
statement和preparedstatement的异同
statement和preparedstatement的异同
statement和preparedstatement的异同
相同点:
二者都是接口,preparedstatement接口继承statement接口
都是用来创建陈述对象的
区别
statement
preparedStatement
效率不同
效率低
效率高,因为使用了预编译
是否有注入漏洞
有(因为需要使用进行字符串拼接构成sql语句)
没有(使用参数绑定的方式构造sql语句)
posted @
2020-05-03 21:44
IT特工
阅读(
316
) 评论(
0
)
编辑
收藏
举报
会员力量,点亮园子希望
刷新页面
返回顶部
公告