I\'ve few emp names like
- john,1
- devil\'s
- corn
something like this
Now when
This assumes you have 3 discrete names in your example string
Exact match. you need to double up quotes.
select * from emp where
empname IN ('john,1' , 'devil''s', 'corn')
You can't LIKE/IN in SQL Server too.
select * from emp where
empname like '%john,1%'
OR
empname like '%devil''s%'
OR
empname like '%corn%'