escape-single-quote-character-for-use-in-an-sqlite-query

String mystring = "Sample's";
String myfinalstring = mystring.replace("'","''");

Comments