编码:
sql = "INSERT INTO `admin` (`id`,`username`,`password`,`access`) VALUES ('"+(numIds+1)+"','"+addedUsername+"','"+addedPassword+"','"+addedAccess+"');";
Statement statementAdd = (Statement) DBconnection.createStatement();
result = statementAdd.executeUpdate(sql);
错误:
MySQLLogin.java:133: error: incompatible types
result = statementAdd.executeUpdate(sql);
^
required: ResultSet
found: int
1 error
有任何想法吗?