Below is my case
1: have a table with values like
dataval
Doctor,Enginner
DOctor
Labour,Doctor
now i want to select all value which as doctor in it how can it be done , can it be done using some my sql built in function
Below is my case
1: have a table with values like
dataval
Doctor,Enginner
DOctor
Labour,Doctor
now i want to select all value which as doctor in it how can it be done , can it be done using some my sql built in function
You can use the function SELECT FIND_IN_SET() like this:
SELECT *
FROM YourTable
WHERE FIND_IN_SET('Enginners', YourFieldName) > 0;