I am trying to execute query like
Select * From Table_name where English=' + word + "'"
and error i am getting is
09-23 07:41:21.995: E/AndroidRuntime(4693): android.database.sqlite.SQLiteException: near "AM": syntax error (code 1): , while compiling: Select * From Table_Name where English='MA'AM'
I have refered the link android.database.sqlite.SQLiteException: near "...": syntax error (code 1) but that also gives me error like
09-23 08:27:08.710: E/AndroidRuntime(5581): android.database.sqlite.SQLiteException: near "MA": syntax error (code 1): , while compiling: Select * From Tabel_Name where English=?MA'AM
So my question is how can i pass this query with MA'AM this kind of words.
PS: Other words which does not have ' is working fine so there is no issue with any other code, just query only which is creating problem.
Thanks in advance.