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

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -