2015-11-04 95 views
-4

執行下面的查詢引發此錯誤#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 1Mysql查詢錯誤#1064 - 您的SQL語法錯誤;

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' 
+0

失蹤值 – RamRaider

+0

您可以發佈完整的錯誤在那裏它要求你使用正確的語法在線附近...... –

+0

那是完全錯誤的位置我已經引述 –

回答

3

試試這個,你有「)」丟失

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') 
0

在你的發言結束時確保你的數據類型,並請大家補充)。