I am trying to populate a sparse table, from a set of 10 input tsv files.
Each file has primary_key, column values for one of the columns on the destination table.
However each file has a different set of primary keys for which it has values.
I wish to load these into the table using LOAD DATA IN FILE.
The first file loads fine, but the second one runs into problems when a duplicate primary key is found.
If I use REPLACE in the query, the value loaded in the first column is lost, but if I use IGNORE, the value isn't loaded in the second column.
Is there any way to do this other than hairy text manipulation to combine all the input files into a single file?