立即学习:https://edu.csdn.net/course/play/27126/371174?utm_source=blogtoedu
PreparedDtatement防sql注入问题
Select userName from users where username = ? and pwd = ?
问好是占位符,再多字符再复杂的字符也只能在这占位符的范围
面试可能问到的问题:
- 你用过JDBC那些对象
- Statement和PreparedStatement有什么区别
- 你是否了解批处理和预处理