尝试在 mySQL 表的 mediumblob 字段中输入一个值,但我得到:
1064 - 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 'WHERE id = 40' at line 3
INSERT INTO 'Picture'
VALUES (efvr)
WHERE id = 40
这个语句有什么问题,如何解决?
最佳答案
INSERT 中不能有 WHERE 子句。如果您尝试更改现有行,则需要改用 UPDATE。
关于SQL 错误 #1064,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3919329/