Let's say I have id ( primary key column) and val column (of type SETwith some allowed values):
set('a','b','c','d','e','f')
I need top select these values as a column, with first column being id
+-----+------+
| id | val |
+-----+------+
| 102 | 'a' |
| 102 | 'e' |
| 102 | 'f' |
Not sure how can this be achieved..
select id, ???? from table where id = 102;