我有以下 SQL 查询:
UPDATE mytable SET status = '2', dec = '268435458001932988' WHERE id = 29952
表是:
status = varchar(1)
dec = varchar(23)
在我阅读手册之后,我可以通过用“,”分隔多个列来更新它们。
那么为什么我在这里得到一个语法错误(1064)?
#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 'dec = '268435458001932988' WHERE id = 29952' at line 1