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

Popular posts from this blog

javascript - How to process users in one specific order using map o each function? -

java - Two interface have same method name with different return type -

javascript - Linking from page A to a specific iframe on page B -