2015-05-31 144 views
-1

我不斷收到錯誤#1064 - 您的SQL語法錯誤; 「」,「1」,「03-JAN-07」), (「SK3127」,「LTCPF502」,「5」,「03」)檢查對應於您的MySQL服務器版本的手冊, 「03-JAN-07」)'at line 17MYSQL INSERT INTO ERROR

INSERT INTO sales 
(cust_id,prod_id,quanitity,date_of_sale) 
values 
("MH3367 
","DTHP7710","1","01-OCT-06"), 
("GM4632","DTCP2109","4","08-OCT-06"), 
("GM2581","LTTA3101","1","10-OCT-06"), 
("GM4632","LTCPF502","2","28-0CT-06"), 
("KM4673","LTCPC505","4","04-NOV-06"), 
("MH3367","LTPBMZ36","3","22-NOV-06 
"), 
("KS2169","LTTA0338","4","14-DEC-06"), 
("AS3485","DJHP1280","5","16-DEC-06"), 
("KM4637","DJEPR180","5","18-DEC-06"), 
("GM2581","A1HPF380","8","19-DEC-06"), 
("GM4632","A1LX5470","9","22-DEC-06"), 
("AS3485","DTHP7710","1","23-DEC-06"), 
("SK3127","DTCP2109","5","24-DEC-06"), 
("AS3485"."LTTA3101","1","03-JAN-07"), 
("SK3127","LTCPF502","5","03-JAN-07"); 

任何人都可以幫忙嗎?

謝謝..

+0

後是正確的。(點)的錯誤是什麼錯誤來糾正 – wiretext

回答

0
INSERT INTO sales 
(cust_id,prod_id,qty,date_of_sale) 
values 
("MH3367","DTHP7710","1","2006-10-01"), 
("GM4632","DTCP2109","4","2006-10-02"), 
("GM2581","LTTA3101","1","2006-10-03"), 
("GM4632","LTCPF502","2","2006-10-04"), 
("KM4673","LTCPC505","4","2006-11-04"), 
("MH3367","LTPBMZ36","3","2006-11-22"), 
("KS2169","LTTA0338","4","2006-12-09"), 
("AS3485","DJHP1280","5","2006-12-16"), 
("KM4637","DJEPR180","5","2006-12-18"), 
("GM2581","A1HPF380","8","2006-12-19"), 
("GM4632","A1LX5470","9","2006-12-20"), 
("AS3485","DTHP7710","1","2006-12-21"), 
("SK3127","DTCP2109","5","2006-12-30"), 
("AS3485","LTTA3101","1","2007-01-07"), 
("SK3127","LTCPF502","5","2007-01-07"); 
+0

對不起,但這並沒有真正的幫助... – jmc1690

+0

對不起,只是有點困惑,對不起。 – jmc1690

+0

將所有日期更改爲正確的格式... – jmc1690

0

你有一個的。「」而不是在您的查詢的第19行的一個逗號,在報價中提到的第一個字符通常是問題,當你得到一個MySQL語法錯誤。

+0

這個錯誤仍然得到壽 – jmc1690

+0

一個錯誤是他們什麼都可能是? – jmc1690