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 'to = 'jjj', details = 'kkk' where expID = 4' at line 1
如果你遇到这种错误时,检查完SQL语句发现并没有任何错误的时候,给变量加上``符号,比如我给expID、details、to加上变成
`expID`、`to`、`details`之后就正确了,如果一直不正确就给所有表中的变量名都加上。注意``是英文符号下键盘最上面数字的最左边那个按键。
本文介绍了一种常见的SQL语法错误“You have an error in your SQL syntax”,并提供了详细的解决方案,特别是关于如何通过给变量名加上反引号(``)来解决这个问题。
6120

被折叠的 条评论
为什么被折叠?



