This is an additional question asked here mysql + importing a file with spaces in the column headers + how to handle
and in my case the header contains blank space and in the table column is different so I need to map the column.
In my db table(abc) the column name is xyz and in file the column filed is "Meter Date" which contains blank space, so while using IN FILE LOAD , I need to mention this
LOAD DATA CONCURRENT LOCAL INFILE ? REPLACE INTO TABLE abc FIELDS TERMINATED BY '\t' OPTIONALLY ENCLOSED BY '"' ESCAPED BY '' LINES TERMINATED BY '\n' IGNORE ? LINES (@Meter Date )SET xyz = NULLIF(@ Meter Date, '') , here how to do this ?