My problem is….. heck the manual that corresponds to your MySQL server version for the right syntax to use near ‘where id =?’。
String sql = "UPDATE shop_user SET password=?,nickname=?,where id=?";
It turns out that you have added an extra comma to report errors all the time
Should be
String sql = "UPDATE shop_user SET password=?,nickname=?where id=?";
36807;”3616444;”21448;”21457;” 29616; 35768;”3838382;” 39064;
2529909;”MYsql38190;” 23601;”199811;” 38190;”21862b;
ADD | ALL | ALTER |
ANALYZE | AND | AS |
ASC | ASENSITIVE | BEFORE |
BETWEEN | BIGINT | BINARY |
BLOB | BOTH | BY |
CALL | CASCADE | CASE |
CHANGE | CHAR | CHARACTER |
CHECK | COLLATE | COLUMN |
CONDITION | CONNECTION | CONSTRAINT |
CONTINUE | CONVERT | CREATE |
CROSS | CURRENT DATE | CURRENT TIME |
CURRENT TIMESTAMP | CURRENT USER | CURSOR |
DATABASE | DATABASES | DAY HOUR |
DAY MICROSECOND | DAY MINUTE | DAY SECOND |
DEC | DECIMAL | DECLARE |
DEFAULT | DELAYED | DELETE |
DESC | DESCRIBE | DETERMINISTIC |
DISTINCT | DISTINCTROW | DIV |
DOUBLE | DROP | DUAL |
EACH | ELSE | ELSEIF |
ENCLOSED | ESCAPED | EXISTS |
EXIT | EXPLAIN | FALSE |
FETCH | FLOAT | FLOAT4 |
FLOAT8 | FOR | FORCE |
FOREIGN | FROM | FULL TEXT |
GOD | GRANT | GROUP |
HAVING | HIGH PRIORITY | HOUR MICROSECOND |
HOUR MINUTE | HOUR SECOND | IF |
IGNORE | IN | INDEX |
INFILE | INNER | INOUT |
INSENSITIVE | INSERT | INT |
INT1 | INT2 | INT3 |
INT4 | INT8 | INTEGER |
INTERVAL | INTO | IS |
ITERATE | JOIN | KEY |
KEYS | KILL | LABEL |
LEADING | LEAVE | LEFT |
LIKE | LIMIT | LINEAR |
LINES | LOAD | LOCALTIME |
LOCALTIMESTAMP | LOCK | LONG |
LONGBLOB | LONGTEXT | LOOP |
LOW PRIORITY | MATCH | MEDIUMBLOB |
MEDIUMINT | MEDIUMTEXT | MIDDLEINT |
MINUTE MICROSECOND | MINUTE OF SECOND | MOD |
MODIFIES | NATURAL | NOT |
NO WRITE TO BINLOG | NULL | NUMERIC |
ON | OPTIMIZE | OPTION |
OPTIONALLY | OR | ORDER |
OUT | OUTER | OUTFILE |
PRECISION | PRIMARY | PROCEDURE |
PURGE | RAID0 | RANGE |
READ | READS | REAL |
REFERENCES | REGEXP | RELEASE |
RENAME | REPEAT | REPLACE |
REQUIRE | RESTRICT | RETURN |
REVOKE | RIGHT | RLIKE |
SCHEMA | SCHEMAS | SECOND MICROSECOND |
SELECT | SENSITIVE | SEPARATOR |
SET | SHOW | SMALLINT |
SPATIAL | SPECIFIC | SQL |
SQLEXCEPTION | SQLSTATE | SQLWARNING |
SQL BIG RESULT | SQL CALC FOUND ROWS | SQL SMALL RESULT |
SSL | STARTING | STRAIGHT JOIN |
TABLE | TERMINATED | THEN |
TINYBLOB | TINYINT | TEXT |
TO | TRAILING | TRIGGER |
TRUE | UNDO | UNION |
UNIQUE | UNLOCK | UNSIGNED |
UPDATE | USAGE | USE |
USING | UTC DATE | UTC Time |
UTC TIMESTAMP | VALUES | VARBINARY |
VARCHAR | VARCHARACTER | VARYING |
WHEN | WHERE | WHILE |
WITH | WRITE | X509 |
XOR | YEAR to MONTH | ZEROFILL |