I have following values in my mysql table column named color: 1;2;3;11;12
id | color
1 | 1;2
2 | 2;11
3 | 1;3
4 | 12
I want to use REGEXP to select only those rows from the table which have color 1.
When i use simple expression
color REGEXP '1'
it also selects rows which have values 11 or 12 whereas i am looking for those with value 1 only. So when i use above expression it show me all 4 rows as shown in the example above where as i want it to show me rows with id 1 and 3 only.