MYSQL: Display Skipped records after LOAD DATA INFILE?

后端 未结 5 2144
被撕碎了的回忆
被撕碎了的回忆 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:30

    Records would be skipped, when any database constraint is not met. Check for common ones like

    • Primary key duplication
    • Unique key condition
    • Partition condition

提交回复
热议问题