I have a table containing following values :
id | value | ----------------------- 1 | 1,2,5,8,12,20 | 2 | 11,25,26,28 | ------------
REGEXP '(^|,)(1|3|6|7|11)(,|$)'
Will match all values containing one number of the sequence 1,3,6,7,11.
1,3,6,7,11
You should not use one column to save several values. Normalize data!
Edited answer