I need to load a tab delimited file into mysql database. My database is set up with columns: ID;A;B;C;D;E and my file is a dump of columns ID and D. How can I load this file into my db and replace just columns ID and D, which out changing the values of columns C and E. When I load it in now, columns C and E are changed to DEFAULT:NULL.
Share
I already answered a similar question like this here, but in your case, you’d want to load the csv into a temporary table, then use a simple update SQL statement to update the specific columbs from your temporary table to your production table.