I have a table with an Id and a name. I am trying to populate it in the following way:
SET FOREIGN_KEY_CHECKS = 0;
load data infile'C:LarutademiCSV.csv'
into table t1
fields terminated by ';'
lines terminated by '\n'
IGNORE 1 lines
(idt1, nombreT1)
SET FOREIGN_KEY_CHECKS=1;
But there are 100 files of 1'000,000 records and each file has the id defined from 1 to 1'000,000, so when I insert it, it marks me an error of duplicate keys. How can I change from the statement that the id field is auto_increment?