php - preventing duplicate row insertion in mysql while importing csv file -
preventing duplicate row insertion in mysql
while importing csv file
.i want insert data mysql table via importing csv file. how prevent duplicate row
insert?
create unique index in column might have dups, then
load data infile 'file.csv' ignore table table_name fields terminated ',' enclosed '"' escaped '"' lines terminated '\n';
Comments
Post a Comment