I am trying to do a query for my mysql db. I have a column that has a comma separated value. I need to do a WHERE statement search with a value to see if it returns results.
lets say my column has a value of: = "value1, value2, value3"
"SELECT * FROM table WHERE column_name IN('value1')"
Problem is there is no results.
I don't want to do a "like" query as even a value22 would come up?
So how do I properly do a query of a comma separated column by searching with one value?
Thank you.