SELECT DISTINCT _id, Game_name, Book, Chapter, Verse_start, Verse_stop, Scripture
FROM Bible_Game WHERE God's Kingdom
i have above code in sqlite select statement and it gives me following error.
android.database.sqlite.SQLiteException: unrecognized token: "'s Kingdom": , while compiling: SELECT DISTINCT _id, Game_name, Book, Chapter, Verse_start, Verse_stop, Scripture FROM Bible_Game WHERE God's Kingdom
how can i solve this problem (how can i use escape character in sqlite?)
You have two problems.
First, your filtering condition (after the WHERE) is not correct. It must compare a column to a value. I’m guessing that you’re searching for a record with Game_name equal to the phrase God’s Kingdom, is that correct?
Additionally, text strings must appear in single quotes. Any internal single quotes within the string must be escaped by doubling the quote character.
If my assumption about your intention is correct, the proper SQL to use is: