loading a csv into mysql -
I have the following code to load into mysql of CSV.
SET @ count = 0; LOAD DATA INFILE 'TELE_AFC_03.03.2014.csv' in the table 'Failure_Reports' specified by the 'master_antry field', determined by the '' suspended '' lines, '\ n' 2 rows (@ snow, @ wise1, line, section, station, Set ID = (@ country: = @ count + 1), sub-system, device, sub-gentleman, failure_time, revised time, duration, failure_details, correction, LMD, original, present_by, report_b, urr) , Fail_date = STR_TO_DATE (@ var1, '% c /% e /% y');
This is working fine for some files, but it returns an error for some CSV
line 1 was truncated in it Column
contains more data, though all files have the same columns. This gives the CSV error - while this CSV works fine, although both are the same columns
Comments
Post a Comment