解决mysql错误代码1064的方法:
mysql报1064错误是因为mysql语句的语法出错了,检查编写的mysql语句,表名和列名都不能加单引号,只有值可以加单引号,修改之后就可以了
示例如下:mysql> insert into huxing_table ('house_structure_page_url') values("test");
ERROR 1064 (42000): 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 ''house_structure_page_url') values("test")' at line 1
报错mysql> insert into huxing_table (house_structure_page_url) values('test');
Query OK, 1 row affected (0.00 sec)
不报错mysql> insert into 'huxing_table' (house_structure_page_url) values("test");
ERROR 1064 (42000): 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 ''huxing_table' (house_structure_page_url) values("test")' at line 1
报错
更多Python知识,请关注:Python自学网!!