I would like to import data from a text file to my database, but I want mysql to only update the record if it finds a match with one of the table fields or else it should add a new record to the table. Can I do this with mysql.