I have an SQL query as below.
Select * from table where name like \'%\' + search_criteria + \'%\'
If search_criteria = \'abc\', it will r
If you want a % symbol in search_criteria to be treated as a literal character rather than as a wildcard, escape it to [%]
%
search_criteria
[%]
... where name like '%' + replace(search_criteria, '%', '[%]') + '%'