I have MYSQL query like this
String query="select DISTINCT sctName from snomedicd10map where sctName Like '" + search + "%" + "' LIMIT 5 ";
this query is for auto complete and if i search word like code's , girl's etc during typing of Apostrophe(') null point exception is occurred
how can i overcome from this . when user enters name with Apostrophe(') in text field it should fetch the result .
i have fetching result from mysql database .
How can i achieve this.