我的错误: 严重:null com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException:SQL语法有错误;在第1行的“ WHERE CustLogin LIKE'patryk”附近使用与您的MySQL服务器版本相对应的手册,以获取正确的语法。 这是更新: “更新客户SET CustPassword =?,CustFirstName =?,” + “ CustLastName =?,CustAddress =?,CustCity =?,CustProv =?,CustPostal =?,” + “ CustCountry =?,CustHomePhone =?,CustBusPhone =?,CustEmail =?,AgentId =?,” + “ CustLogin喜欢在哪里?”;
kompilator的stmt.executeUpdate()有问题;
有屏幕代码:
我认为更新没有错误并且数据库可以正常工作,因为例如我可以添加客户 你有什么主意吗?