"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 ''zhaoqiuyu' (`NAME`,`PRICE`,`COUNT`) values('电脑',1999,1)' at lin

"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 ''zhaoqiuyu' (NAME,PRICE,COUNT) values('电脑',1999,1)' at line 1")

sql语句错误,多半是占位符引号问题,注意%s 需不需要加 ' '

posted on 2019-06-15 14:50  _albert  阅读(297)  评论(0编辑  收藏  举报