Hi I want to search string by escaping special characters using Like query.
My String is - abc & abc
Column value is - abc & abc
Somehow I don't want to include special characters in this search functionality.
I can escape my string using REGEX
by using preg_replace with /[^A-Za-z0-9\-]/
What I want is some mysql function which can replace the column value for getting search result only but it should not update the column value.
So I will pass abc abc string and it will match column with value abc abc.
Virtually - SELECT * FROM MyTable WHERE myColumn LIKE 'abc abc';
and it should give me the result.