I wrote the below SQL query with a LIKE condition:
LIKE
SELECT * FROM Manager WHERE managerid LIKE \'_%\' AND managername LIKE \'%_%\'
You can write the query as below:
SELECT * FROM Manager WHERE managerid LIKE '\_%' escape '\' AND managername LIKE '%\_%' escape '\';
it will solve your problem.