Let's say I have a table like this:
id | set_of_numbers
-------------------------
1 | "41,52,64,238,246"
2 | "41,52,64"
3 | "41,52,64,238,245,246,248,323,418"
4 | "89,52,64"
5 | "31,52,64,128,246"
6 | "41,52,64"
7 | "41,52,64,238,245,248,323,418"
8 | "67,53,64"
Now I have a query set like (64,246) and I want to list all items that have ALL numbers in the query set. So the result will be (1,3,5).
I'm using MySQL Procedure where the input is (64,246) so I don't have the numbers separated.