I have a MySQL table containing several fields; like this:
id name ton dyr
1 moo FRET_GTR_HYU ra
2 maa DER_GY_TR_DB fe
3 tee SAME_IQ tete
...
The question is that the contents for every row of the column ton are independent, but they are joined with a symbol "_".
I would like to modify the table, splitting the field ton to end up keeping all the same entries in the other fields, but just one entry per row in the ton field, like this...
id name ton dyr
1 moo FRET ra
1 moo GTR ra
1 moo HYU ra
2 maa DER fe
2 maa GY fe
2 maa TR fe
2 maa DB fe
3 tee SAME tete
3 tee IQ tete
...
I tried to modify the code given in this page to perform the job, but as i'm not that expert in MySQL, i am not able to get it to work my way. In the link above, the code is given suitable to rewrite the two columns given, not any other fields.
Any help on how to modify the code, or do it another way?