写爬虫时,最后一步导入MySQL数据库时一直报错:

报错信息:ProgrammingError: (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 ‘‘test’(‘unit’)values(‘元/月’)’ at line 1”)
MySQL 导入数据时报错之完美解决
最后发现,SQL语句的单引号不是正常的单引号,而是TAB键上面的那个!
纠正之后,运行成功!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2021-11-12
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-05
  • 2022-12-23
  • 2021-05-26
  • 2021-07-11
  • 2021-12-27
  • 2021-10-06
  • 2022-12-23
相关资源
相似解决方案