x

(多选题)??下面哪个代码是不安全的, 可能存在sql注入漏洞 ()。(2分)

发布于 2021-03-07 04:40:54
【多选题】
A <select id="selectStudentByName" parameterClass="String" resultClass="Student"> select name,birth,score from tbl_student where name like '%$name$%' </select>
B stmt = connection.prepareStatement("select * from articles where uid=?"); stmt.setInt(1, id); rs = stmt.executeQuery();
C stmt = connection.prepareStatement("select * from articles where title like '%" + keyword + "%' order by id"); rs = stmt.executeQuery();
D <select id="selectStudentById" parameterClass="int" resultClass="Student"> select * from tbl_student where id=#id# </select>

查看更多

关注者
0
被浏览
82
  • 体验AI问答!更聪明、超智能!
  • 一款基于GPT的超级AI助手,可以对话、创作、写文案!
1 个回答

撰写答案

请登录后再发布答案,点击登录

发布
问题

手机
浏览

扫码手机浏览

分享
好友

在线
客服