My Current table. Only id and genre showing other fields ommited
+---------+----------------------+
| id | genre |
+---------+----------------------+
| 1849012 | Animation, Short |
| 2016229 | Comedy, Crime, Drama |
| 224412 | Drama, Family |
+---------+----------------------+
I have created the nessecery tables, how can I populate them?
Created table called genre with 'genreid' and 'name' fields
+---------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+----------------+
| genreid | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(50) | YES | | NULL | |
+---------+-------------+------+-----+---------+----------------+.
I have also created another table called movie2genre
+---------+---------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+---------+---------+------+-----+---------+-------+
| movieid | int(11) | YES | | NULL | |
| genreid | int(11) | YES | | NULL | |
+---------+---------+------+-----+---------+-------+