I have a VARCHAR column that contains comma separated values and I would like to know if I could match a number within these comma separated values?
Like, I would have a row:
id | numbers
1 | 1,2,4,5
2 | 2,3,4,6
And I would like to match all the rows with the number 2 in the list.
Take a look at the FIND_IN_SET function.