0

私の質問に似た回答が見つかりませんでした

これは友人のスラング辞書アプリのためのものなので、ばかげた言葉に腹を立てないでください

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.')
4

2 に答える 2

4

;問題は、値セットを区切るために使用しているセミコロン( )です。代わりにコンマ(,)を使用する必要があります。

于 2012-06-18T06:07:27.193 に答える
2

問題は構文にあります。置換; を使用して INSERTデータセットを分離します

于 2012-06-18T06:08:30.703 に答える