2012-06-18 165 views
0

還沒有找到一個答案,類似於我的查詢SQL查詢錯誤,

這一個朋友俚語詞典應用程序,所以請不要將獲得由愚蠢的語言

SQL查詢生氣:

(
'A', 'Assc', 'Assclown', 'Assclown - verb, adjective - one who makes a complete fool of themselves or is just generally a moron. Closely related to asshat. ALT. SPELLING:ass clown. USAGE: Listen up assclown, you my friend are an untalented hack!' 
); 

MySQL表示:

#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 ''A', 'Assc', 'Assclown','Assclown - verb, adjective - one who makes a complete f' at line 1

-- 
    -- Dumping data for table `countries` 
    -- 

    INSERT INTO `dictionary` (`Letter`, `ID`, `Word`, `Definition`) VALUES 
    ('A', 'As', 'Ass Out','Ass Out - verb, adjective - to be poor, have no money.           USAGE: Man I am ass out this month. I 

    aint got no kinda funds coming through here.'); 
    ('A', 'Assc', 'Assclown','Assclown - verb, adjective - one who makes a complete     fool of themselves or is just 

    generally a moron. Closely related to asshat. ALT. SPELLING:ass clown. USAGE:   Listen up assclown, you my friend are 


    ('A', 'Autob', 'Autoburial','Autoburial - noun - the state of being given the antithesis of   autopush; that is to 

    receive no favoritism at all. ANT: autopush SYN: baller-blocking, hatred USAGE: My   instructor was hating and gave 

    the entire class massive autoburial on our midterm grades.') 
+0

這是整個查詢嗎? – Ladadadada

+0

否,但查詢的其餘部分僅僅是格式相同的'a'單詞列表 –

回答

4

問題是分號(;)你用來分離值集。您必須改用逗號(,)。

2

問題出在語法上,請替換;, INSERT數據集分離