I have a function which is executing a query on a table in SQLite database.I have one what like ” what’s your name ?” .This is stored in a String variable let’s say v, I have one query like “Select * from xyz where question=” ‘ “+v+” ‘ “; .But it is throwing some exception near appos s. Any solution will be appreciated.
Is is showing error : whilke compiling : select * from xyz where quesion=’what’s your name? ‘
first replace char with this
then pass it in your query
give a shot