MySQL-MySQL skips some rows when import .csv file -
i wanted import .csv file ~14k rows mysql. got table in mysql 13k rows. checked , found out mysql skips rows in middle of .csv file.
i used load data infile , cannot understand why mysql skips rows. appreciate if me this.
here query:
load data local infile 'd:/data/tanbinh - gui tuan/hm2.csv' table q.hmm fields terminated ',' enclosed '"' lines terminated '\n' ignore 1 lines;
there no warning message @ all
i assume, difference in numbers of rows caused unique key duplicates.
from reference:
with load data local infile, data-interpretation , duplicate-key errors become warnings , operation continues
actually there no warnings produced on duplicates. check wich rows skipped, can load data similar table without unique keys , compare tables.
Comments
Post a Comment