我有一个 MySQL 服务器,我正在尝试使用
INSERT INTO servers (ip, version, motd, players, plugins, time)
VALUES ('--.---.---.--', '1.13.2', 'redacted', '0', '1', NOW())
ON DUPLICATE KEY UPDATE;
要插入数据,却弹出这样的错误消息:
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
我在 LibreOffice Base 上再次尝试此查询,并弹出以下消息:
SQL Status: HY000
Error code: 1000
Syntax error in SQL statementSQL Status: HY000
Error code: 1000
syntax error, unexpected $end, expecting BETWEEN or IN or SQL_TOKEN_LIKE
有什么帮助吗?
最佳答案
重复更新后缺少语句
关于mysql - MySQL 语句中的语法错误,无帮助的错误消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53708323/