I am using the following query to split column values. It's working for case insensitive scenario, but I want it to work with case sensitivity.
For example, in the string 'Oil is a product Ingredients are' if my searching keyword is 'ingredients' it should return false
and should only return true
if searching keyword is 'Ingredients'. Is there any function in mysql which allows this?
SELECT
SUBSTRING_INDEX(description, 'Ingredients', 1),
if(LOCATE('Ingredients', description)>0, SUBSTRING_INDEX(description, 'Ingredients', -1), '')
FROM `product`