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 |
Similar Posts:
- Translating SQLException with SQL state ‘42000’, error code ‘1064’, message [You have an error in yo
- Get the time value from the database and report an error: Java sql. Timestamp cannot be cast to java. lang.Long
- MySQL from_ Unixtime() and UNIX_ The difference of timestamp() function
- [Solved] mapper.xml Error: java.lang.AbstractMethodError: Method oracle/jdbc/driver/OracleResultSetImpl.getNString(Ljava/lang/String;)Ljava/lang/String; is abstract,
- Uniapp IOS uses new date() to report an error
- Logstash output jdbc Error: java.lang.IllegalAccessError: tried to access class com.mysql.jdbc.EscapeProcessor from class com.mysql.jdbc.ConnectionImpl
- Solve the problem of unknown column ‘password’ in ‘field list’ in MySQL
- [Solved] Error 1054 (42s22) unknown column ‘password’ in ‘field list’ when updating the password of mysql5.7 or above
- When mysql creates a table, set timestamp DEFAULT NULL error 1067-Invalid default value for’updated_at’
- NodeJS Connect MYSQL Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client