This dummy table:
name | lesson_mode
-------------------
a | 1,2,3
b | 2,3
c | 2
d | 3
Using this query:
SELECT * FROM `cc_teacher` WHERE lesson_mode IN (2,3)
I get
name | lesson_mode
-------------------
b | 2,3
c | 2
d | 3
I am having a problem in search results, my problem is that suppose, in this case we are talking about lesson_mode
column, I have written the SQL query like this:
SELECT * FROM `cc_teacher` WHERE lesson_mode IN (2,3)
but I didn't get the row in which have 1,2,3
, so please help me. Anyone know how to do that?