what is the Query For -> How To Get The table content whose column consists of data comma sepreted value how to check is that value is present in that coloumn if present then select that ID of product
id productname poduct_cat_id
1 abc 2,3,4
2 def 3,4
3 efg 1,2,5
How to check 3 in product_cat_id and get the product name and id
output: result[id]=1
result[productname]=abc
I agree with Phil’s comment above.
For you table you can use FIND_IN_SET function –