【问题标题】:sql query error,sql查询错误,
【发布时间】:2012-06-18 06:04:46
【问题描述】:

没有找到与我的查询类似的答案

这是一个朋友的俚语词典应用程序,所以请不要被愚蠢的语言冒犯

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

【问题讨论】:

  • 这是整个查询吗?
  • 不,但查询的其余部分只是格式相同的“a”字列表

标签: mysql sql database phpmyadmin


【解决方案1】:

问题在于您用来分隔值集的分号 (;)。您必须使用逗号 (,)。

【讨论】:

    【解决方案2】:

    问题出在语法上,把;换成分隔INSERT数据集

    【讨论】:

      猜你喜欢
      • 2015-09-29
      • 1970-01-01
      • 2015-04-22
      • 2017-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-16
      相关资源
      最近更新 更多