Du kan prova så här: -Import the csv file to a temp table -Update your main table by joining with a temp table.