Mysql 查询 #1064 中的错误 - 您的 SQL 语法有误;

Error in Mysql Query #1064 - You have an error in your SQL syntax;

执行下面的查询会抛出这个错误#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 '' at line 1:

INSERT INTO farmpreparation (idno, loanno, plotno, initialcost, primarycost,` `secondarycost, tertiarycost, manuallabour, machinelabour, othercost,` `totalcost, typeofcost, addedby, timestamp) VALUES ('234354554',` `'34206bfce6ac247af85d77b840e9d8cf', 'SDDF454677', '2000', '0', '2000', '2000',` `'2000', '0', '0', '8000', 'ESTIMATE', 'admin', '2015-11-03 01:50:49'

试试这个你有')'丢失

INSERT INTO farmpreparation (idno, loanno, plotno, initialcost, primarycost, secondarycost, tertiarycost, manuallabour, machinelabour, othercost, totalcost, typeofcost, addedby, timestamp) VALUES ('234354554', '34206bfce6ac247af85d77b840e9d8cf', 'SDDF454677', '2000', '0', '2000', '2000', '2000', '0', '0', '8000', 'ESTIMATE', 'admin', '2015-11-03 01:50:49')

确保您的数据类型,请在语句末尾添加 )。