I just added a new field to my Rails app which uses a MySQL DB. I have a CSV which contains values for the new field (name) for records already in the table.
Article (table)
_______________
id | name
In the first field of the CSV is the id field and in the second is the name. I want to update the Article table by updating the name field based on the id field in the CSV. Can someone please help me write a MySQL query for doing this?