I have a string searchval = "php,java,html".
I want to check any of the comma separated value in string exist in column keyword in my below table.
My table
id keyword
-----------------------------
1 java,php
2 jquery, javascript
3 java
4 php,jquery
Any of the searchval(comma separated) value match the keyword(comma separated) should return the id.
So the result should be:
1 (java,php is there),
3 (java is there),
4 (php is there)
How can I do this?
find_in_set?