sqlite.SQLiteException: near “s”: syntax error: because of apostrophe
问题 The song name that I want to insert it into my table contains a " ' " (apostrophe )so , there is an error when the request is excuted. How can I fix it Cursor pid = mDB.rawQuery("select Id FROM MusicPlayer WHERE "Path ='" + sname + "';", null); I am getting sname runtime so .. sname= /mnt/sdcard/Now Thats What I Call Music 85 [Bubanee]/16 - Let's Get Ready To Rhumble (100% Radio Mix) - PJ & Duncan.mp3 I get below error.. android.database.sqlite.SQLiteException: near "s": syntax error: , while