0

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

Cœur
  • 37,241
  • 25
  • 195
  • 267
mydeve
  • 553
  • 1
  • 14
  • 39
  • Possible duplicate of [MySQL case insensitive select](http://stackoverflow.com/questions/3936967/mysql-case-insensitive-select) – Dinidu Hewage May 11 '16 at 04:29

1 Answers1

2

You can use the function SELECT FIND_IN_SET() like this:

SELECT *
FROM YourTable
WHERE FIND_IN_SET('Enginners', YourFieldName) > 0;
Bernd Buffen
  • 14,525
  • 2
  • 24
  • 39