syntax error about SQLitedatabase ,When is select*from
This is error
android.database.sqlite.SQLiteException: near "FROMfriendsWHERE": syntax
error: , while compiling: SELECT*FROMfriendsWHERE id != ?
This is my code
Cursor cursor = db.rawQuery("SELECT * FROM "+FriendsDBHelper.TABLE_NAME+"
WHERE id != ?",new String[]{Integer.toString(0)});
No comments:
Post a Comment