[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds...
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds...相关的知识,希望对你有一定的参考价值。
INSERT INTO `ftms_active_dealer`(dealer_code,dealer_name,active_id,dealer_state)VALUES(‘415A1‘,‘贺磊‘10023‘,‘1‘),
(‘31042‘,‘魏小彬‘10023‘,‘1‘);
[Err] 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 ‘10023‘,‘1‘),
(‘31042‘,‘魏小彬‘10023‘,‘1‘)‘ at line 2
网上查了很多资料,大多数该错误发生在create table或者存储过程中列名调用了系统功能函数名或者存储过程语法不对,比如多个‘,‘什么的,insert发生问题还真是少见,排查了半天,原来是老眼昏花了....插入明明是4个列,结果values中少一个,导致变成了3个列了。
INSERT INTO `ftms_active_dealer`(dealer_code,dealer_name,active_id,dealer_state)VALUES(‘415A1‘,‘贺磊‘,‘10023‘,‘1‘),
(‘31042‘,‘魏小彬‘,‘10023‘,‘1‘);
改正后正常。
以上是关于[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds...的主要内容,如果未能解决你的问题,请参考以下文章
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds...
[Err] 1064 - You have an error in your SQL syntax; check the manual that cor错误时
[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s
Python操作mysql数据库出现pymysql.err.ProgrammingError: (1064, "You have an error in your SQL syntax; c
Mysql错误:[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your
插入数据库失败([Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your