MYSQL: Display Skipped records after LOAD DATA INFILE?

后端 未结 5 2170
被撕碎了的回忆
被撕碎了的回忆 2021-02-19 15:34

In MySQL I\'ve used LOAD DATA LOCAL INFILE which works fine. At the end I get a message like:

Records: 460377  Deleted: 0  Skipped: 145280  Warnings         


        
5条回答
  •  被撕碎了的回忆
    2021-02-19 16:09

    If there was no warnings, but some rows were skipped, then it may mean that the primary key was duplicated for the skipped rows.

    The easiest way to find out duplicates is by openning the local file in excel and performing a duplicate removal on the primary key column to see if there are any.

提交回复
热议问题