注意 和 and 连接两边都需要空格一下 String record="number="+"'"+number+"' and name="+"' name+"' and password="+"'"+password+"' and college="+"'"+college+"' and subject="+"'"+subject+"' and grade="+"'"+grade+"'";还有你可以用System.out.println();把sql打印出来,在复制到查询分析器执行sql看看是否会出错。...