如果‘小美’是想通过键盘输入,那需要怎么解决呢?
Scanner input =new Scanner(System.in);
String in=input.next();
param.put("value",in);
运行结果为:select * from imooc_goddess where 1=1 and user_name = ss 就提示错误:Unknown column 'ss' in 'where clause'
Scanner input =new Scanner(System.in);
String in=input.next();
param.put("value",in);
运行结果为:select * from imooc_goddess where 1=1 and user_name = ss 就提示错误:Unknown column 'ss' in 'where clause'
2016-08-06
举报