i have this sting for example: 11,22,33
and this is me table:
ID / content
---------------------
1 / 11,15,18,20,22,28,29,30,
2 / 10,11,17,20,22,27,33,40,
3 / 4,8,9,15,22,23,24,31,33,
4 / 10,11,20,22,30,33,40,41,
5 / 5,6,7,10,11,22,28,30,33,
6 / 10,11,12,13,14,15,20,22,
id 1 contains only 11 and 22
id 2 contains all items from strin: 11 and 22 and 33
id 3 contains only 22 and 33
id 4 contains all items from strin: 11 and 22 and 33
id 5 contains all items from strin: 11 and 22 and 33
id 6 contains only 11 and 22
How to create me MYSQL command to read only items with ID: 2,4,5
SELECT *
FROM table
WHERE content ???