Possible duplicate: Divide the value from one field into two
Unfortunately, MySQL does not have a line-breaking function. As indicated in the link above, there is a custom split function .
A more detailed version for retrieving data may be as follows:
SELECT SUBSTRING_INDEX(SUBSTRING_INDEX(colors, ',', 1), ',', -1) as colorfirst,
SUBSTRING_INDEX(SUBSTRING_INDEX(colors, ',', 2), ',', -1) as colorsecond
....
SUBSTRING_INDEX(SUBSTRING_INDEX(colors, ',', n), ',', -1) as colornth
FROM product;