Possible Duplicate:
Can Mysql Split a column ?
I have one string column and one comma separated column as below
Example, I have the table,
Col1 | col2
1 | a,b,c
2 | d,e
From above, I want
Col1,Col2
1 ,a
1 ,b
1 ,c
2 ,d
2 ,e
How to achieve this
It is not the Exact Duplicate.
You can do this using a stored procedure