“Column count doesn't match value count at row” but it does

前端 未结 7 1735
我在风中等你
我在风中等你 2020-12-30 00:11

I\'ve got a mysql file with over than 14000 statements. All of them are inserts into a table, and when I import the file using console, it throws the following error:

<
7条回答
  •  长情又很酷
    2020-12-30 00:50

    I faced a similar problem because of inserting parenthesis around data :-(:

    INSERT INTO Customers (Name,LastCredit,CreditDate) VALUES ( <-- Here.
        ("Nuclear Millitary Systems",500.0,CURRENT_DATE),
        ("Evil Corporation",67890.95,"2012-02-12"),
        ("Nuke Software Systems",5600.0,"2013-05-06"),
        ("RR Millitary",600.0,"2013-05-06"),
        ("Random Automation",560.0,"2012-05-01"),
        ("Evil Data Systems",600.0,"2013-03-01")
      ); 
    

提交回复
热议问题