I have problem to search number from string which is simple but I can not solve, I have GALLERY table
id | gallery_name | standard
____________________________
1 | aaa | 1,2
2 | bbb | 2
3 | ccc | 1,6, 12
I want to find gallery which has 2 standard. For that I run below query
select * from galley where standard IN('%2%')
;
Output: it return first two row which contain 2 standard and also return 3 row which not contain 2 but 12
Please help me how to solve the issue
Thank you