I have a dataset in the form of a CSV file than is sent to me on a regular basis. I want to import this data into my MySql database and turn it into a proper set of tables. The problem I am having is that one of the fields the is used to store multiple values. For example the field is storing email addresses. It may one email address or it may have two, or three, or four, etc. The field contents would look something like this. "user1@domain.com,user2@domain.com,user3@domain.com".
I need to be able to take the undetermined number of values from each field and then add them into a separate table so that they look like this.
user1@domain.com
user2@domain.com
user3@domain.com
I am not sure how I can do this. Thank you for the help.