已解决EROR 1064 (42000): You have an error in. your SOL syntax. check the manual that corresponds to your MySQL server version
报错代码
粉丝群里的一个小伙伴,用SQL插入新增数据的时候报错:
报错信息:EROR 1064 (42000): You have an error in. your SOL syntax. check the manual that corresponds to your MySQL server version
报错翻译
报错信息翻译:
报错:您在中有一个错误。您的SOL语法。检查与MySQL服务器版本对应的手册
报错原因
报错原因:他的新增数据语句有问题
解决方法
正确的SQL新增数据语句:
insert into 表名(列名,列名) values(值1,值2)
或者
insert into 表名 values(值1,值2)
修改正确代码执行成功: