I have a value of:
1/2
3/4/5
2/3/6
I want to find the value 2 so the result must be
1/2
2/3/6
I dont want to use LIKE operator. Is there any way to set the separator in FIND_IN_SET function?
You can use like
or find_in_set()
. Here is one method:
where find_in_set(2, replace(col, '/', ',')) > 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