如何删除查询错误?

时间:2014-01-23 10:44:59

标签: mysql sql

CREATE TABLE `FC_Categories`
(
   `CategoryID` INTEGER NOT NULL AUTO_INCREMENT,
   `CategoryName` VARCHAR (15),
   `Description` TEXT,
   `Picture` LONGBLOB,
    UNIQUE (`CategoryName`),
    PRIMARY KEY (`CategoryID`)
) ENGINE = MYISAM;
# Dumping data for table FC_Categories 
# INSERT INTO FC_Categories VALUES (1, 'Beverages', 'Soft drinks, coffees,teas, beers, and ales') 

MySQL说:文档

  

#1064 - 您的SQL语法出错;检查手册   对应于您的MySQL服务器版本,以便使用正确的语法   'INSERT INTO FC_Categories VALUES附近(1,'Beverages','Soft   饮料,咖啡,茶,'第14行

1 个答案:

答案 0 :(得分:0)

您需要输入字段名称

INSERT INTO FC_Categories ('field1','field2','field3','field4','field5','field6','field7','field8') VALUES (1, 'Beverages', 'Soft drinks, coffees, teas, beers, and ales', 0x151C2F00020000000D000E0014002100FFFFFFFF4269746D617020496D616765005061696E742E5069637475726500010500000200000007000000504272757368000000000000000000A0290000424D98290000000000005600000028000000AC00000078000000010004000000000000000000880B0000880B00000800000008000000FFFFFF0000FFFF00FF00FF000000FF00FFFF000000FF0000FF000000000000000000100000000010000000010010000000000000010101000100001001000000010100010000001001000001000000101010001000001000100000000000000000000010000000010000000000000010000000000000000000000010010010000000000000000000010010010000125070701000000010000000010001001000000100000010000000001[...