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

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

    In my case, my database table has a trigger associated to another table, and there was one column missing in triggered table. Something like this:

    Table1 columns: UserAccountID, Document type, permissions, Status

    Triggered Table 2 columns: Revision number, Revision Status, UserAccountID, Permissions, Status

    So in the table 2, "document type" column was missing. Check the triggers in the DB by

    "show triggers from {Database Name}"

    0 讨论(0)
提交回复
热议问题