mysql 5.5版中的SYNTAX错误

时间:2015-04-24 20:09:41

标签: mysql

您希望运行SQL但遇到语法错误我不确定我已经在下面复制了mysql:

您希望运行SQL但遇到语法错误我不确定我已经在下面复制了mysql:

CUSTOMER

- - 转储表 INSERT INTO `CUSTOMER` VALUES (97675789,'Samantha','Jones','8837 Pellentesque Ave','Dublin','Leinster','Ireland',NULL,'nec@fringillaDonecfeugiat.ca','2015-03-13 00:00:00','2015-11-04 00:00:00'); (93872909,'Vielka','Mitchell','P.O. Box 608, 5827 Dignissim St.','Galway','Connacht','Ireland','0855511623','Sed.nec@magnaPraesentinterdum.net','2015-03-26 00:00:00','2015-04-04 00:00:00'); -

的数据
//include_once("../test/nuclear_test2.php");
//include_once("nuclear_test2.php");
//include_once("./test/nuclear_test2.php");
//require_once("./nuclear_test2.php");

1 个答案:

答案 0 :(得分:-1)

在单个insert语句中添加多行时,请将其与,分开,而不是;

所以它会是

INSERT INTO `CUSTOMER`  
VALUES  
(97675789,'Samantha','Jones','8837 Pellentesque Ave','Dublin','Leinster','Ireland',NULL,
'nec@fringillaDonecfeugiat.ca','2015-03-13 00:00:00',
'2015-11-04 00:00:00'), -- should be , not ;
(93872909,'Vielka','Mitchell','P.O. Box 608, 
5827 Dignissim St.','Galway','Connacht','Ireland','0855511623',
'Sed.nec@magnaPraesentinterdum.net','2015-03-26 00:00:00',
'2015-04-04 00:00:00');