I want to search in mysql database with columns containing some supplier names and it has values like. Bansbach GmbH (default) , Bansbach Feinmechanik and Bansbach xyzsomething. I need to get the result as an array where it contains results with columns containing exactly equal to Bansbach if not then check for both Bansbach and default. How to write a mysql query like this.
Now I've tried some thing like this.[only my where clause included here]
WHERE suppliername ='Bansbach'
I need some thing like
WHERE if(suppliername !='Bansbach' then (check it contains both bansbach and default)