In some cases, we use find_in_set() instead of in() in mysql. Following is an example, where we should use find_in_set() instead of in() :-
Suppose we have a table 'flashdata':-
fid productId
1 75,73
2 72
3 71, 73
Now, if we want to get all fid that have productId is 73 then our query should be:-
select fid from flashdata where find_in_set(73, productId);
it returns fid 1 and 3
0 Comment(s)