Let's say i have a column for tags. This tags is separated by space.
|tags |
|apple banana melon |
|apple banana pineapple|
|apple melon pineapple |
I would like to get all the word in column tags, separated it by space and remove the duplicate word. So i will get output like this:
|unique_tags|
|apple |
|banana |
|melon |
|pineapple |
How to do this in mysql?