I have following values in my sql column:-
a,b,c,d e,f
I want to check if b
is present in the column.
You can use FIND_IN_SET():
FIND_IN_SET('b',yourcolumn) > 0
As an example to be used in a query:
SELECT * FROM yourtable WHERE FIND_IN_SET('b',yourcolumn) > 0;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With