原文:解决:pymysql.err.OperationalError: (1054, "Unknown column 'None' in 'where clause'")

下面是我代码中的sql语句 运行后报错 : pymysql.err.OperationalError: , Unknown column None in where clause 调试后发现问题所在,原来company id传参时,传了None值,所以才报这个错 让其运行成功,转成字符串即可,加单引或双引 :company id 等于的 加上单引号 :company id 等于的 s 加上单引号 ...

2021-01-22 19:46 0 2510 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM