ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your

报错: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 ‘‘stock’(
‘id’ int unsigned auto_increment,
‘number’ int (10) not null,
‘name’ va’ at line 1
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your_第1张图片
原因是应为引号的原因,要用英文的引号即键盘上esc键下边有一个~·的键中的·符号做为引号,
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your_第2张图片

ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your_第3张图片

你可能感兴趣的:(python,数据库,mysql)