就是插入文章数据的时候,可能是因为有标签的缘故出现这样的问题,如图:
pymysql.err.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 \'q</p>\n <p id="_j_p...
该怎么解决?修改字段类型?谢谢了
You have to use it
Way
I guess you use it
Troubleshoot whether the single quotes are not escaped
It may be that the field uses "keywords". Check it and change the length to be larger.