i am using this command:
LOAD DATA INFILE 'some.txt' INTO TABLE student (stud_id, stud_fname, stud_lname, email, status, level) FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '\"\"' ESCAPED BY '\' LINES STARTING BY '%%' TERMINATED BY '\n';
and the text is that
%%"22222"\t"Nick"\t"Gem"\t"someaddress@domain.com"\t"O"\t"a"
%%"22223"\t"Josh"\t"Gold"\t"someaddy2@domain.com"\t"O"\t"a"
i get an error message.
if i just give the command:
LOAD DATA INFILE 'some.txt' INTO TABLE student (stud_id, stud_fname, stud_lname, email, status, level)
it insert only the into the primary key (stud_id) the value 0 and of course then it says duplicated entry and doesnt go on
anybody who could know?