摘要: preparedStatement 防止SQL注入:将敏感字符进行转义 1、获取PreparedStatement对象 String sql="selct * from 表名 where 列名1=? and 列名2=?"; 问号作为占位符代替相应参数,后续需要利用set数据类型()将?补上,也就是第 阅读全文
posted @ 2022-09-13 19:23 yesyes1 阅读(4) 评论(0) 推荐(0) 编辑