I\'ve few emp names like
john,1 devil\'s corn
something like this
Now when
select * from emp where empname like ('john\,1','devil\'s','corn\'') escape '\'
use keyword escape to mention escape character for the query.