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

前端 未结 7 1730
我在风中等你
我在风中等你 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:46

    Check for special hidden characters in the file. You might think that all whitespace in the file are spaces, but sometimes other characters can kill the insert in some way you can't understand by looking at the data.

    If all else fails, retype the INSERT manually and run it in a file by itself to see if it still fails.

提交回复
热议问题