sql语句
insert into test (check,item_number,name, haha) values('2222', 1, '1111', 'hahah');
报错如下
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 'check,item_number,name, haha) values('2222', 1, '1111', 'hahah')' at line 1
翻译后
你有一个错误在你的SQL语法;检查与你的MySQL服务器版本对应的手册,在第1行使用'check,item_number,name, haha '值附近的正确语法('2222',1,'1111','hahah')'
注意的地方
注意check这个字段。这个字段为sql的保留关键字,所以才会报错,不要使用这个单词做字段。