I have a large CVS file and need to write it to my database the first line is the fields, which I have to validate if they are right and make some changes for example
first line NAME, DATANASCIMENTO, NOMEMAE second line GUILHERME FREIRE, 02/15/1987, MARIA CLARA third line PEDRO ANTUNES, 04/20/1990, PATRICIA SA
So that's fine, but the first line may be different and I want to validate this it can be as NOMECOMPLETO, DTNASCIMENTO, MAE ... ETC
How do I do it with the best efficiency possible?