mysql> load data local infile 'E:130.txt' into table chezhu
Query OK, 29596 rows affected, 65535 warnings (1.70 sec)
Records: 35018  Deleted: 0  Skipped: 5422  Warnings: 70036
这些skipped的都是些什么数据? 如何查看这些skipped的数据?

解决方案 »

  1.   

    如何查看这些skipped的数据
    ---------------------
    那你只能将数据导进一个空的表,然后与表chezhu 进行主键列关联来查询就知道了
      

  2.   

    先讲文件中的key设置为disabled的
      

  3.   

    估计是主键重复了。比较难直接查看,你可以另建一完全相同的表 chezhu2,取消各种主键,外键约束,然后  load data local infile 'E:130.txt' into table chezhu2然后再 select * from  chezhu2 where id not in (select id from chezhu) 之类的查询看一下哪些记录未load.