Possible Duplicate:
how to do a split on a sql table column
I have a following MySQL table
(ID,my_string)
(1,"substrA,substrB,substrC")
(2,"substrD,substrE")
...
is there some statment that would allow to split string into the individual substrings(separated by comma) and merge them with the corresponding ID?
like
(ID,substring)
(1,substrA)
(1,substrB)
(1,substrC)
(2,substrD)
(2,substrE)
...
thank you for advice in advance