62,614
社区成员
发帖
与我相关
我的任务
分享
ResultSet resultset2 = statement.executeQuery("select id from cusinfo where class='"+classname+"' and '"+list.get(i)+"'='"+condition[i]+"'");
这里and '"+ 和 +"'='
多了个'吧
ResultSet resultset2 = statement.executeQuery("select id from cusinfo where class='"+classname+"' and "+list.get(i)+"='"+condition[i]+"'");
这样
ResultSet resultset2 = statement.executeQuery("select id from cusinfo where class='"+classname+"' and '"+list.get(i)+"'='"+condition[i]+"'");
这里and '"+
多了个'吧
ResultSet resultset2 = statement.executeQuery("select id from cusinfo where class='"+classname+"' and "+list.get(i)+"'='"+condition[i]+"'");
这样