摘要:
通过预编译处理就可以解决。 有学生表 student ( id name age sex) SQL注入例子 select * from student where name =? and sex=? 传参时通过,("张三","女 and id !=0"); 明显这里 第二个参数就是有问题的(前端瞎搞 阅读全文
摘要:
1、对于数字类型 status (int) select * from student where status="23x11o66请求" 如果数据库存的是 数字类型。查询赋值时,如果是一个字符串。例如 status="23x11o66请求"。 则mysql会自动从左往右截取,直到不满足数字类型。则 阅读全文