I have a column in DB where it may contain data with special characters.
for ex:a column,Name may have data as following
santosh’s
santosh/s
santosh%s
How to search for these values in DB using like operator.
Select * from table where name like '%santosh%';
How to change the above query to search for apostrophe(santosh’s)
for 1. apostrophe s you can use
for 2. /s you can give directly
for 3. %s you can use
hope this helps…..