Cursor cursor = db.rawQuery("SELECT id,lastname,status FROM people WHERE " + "id = "+ IncomingiD +" FROM people WHERE status =100 ); ",null);
我想访问我的人员表的“status=100 和 id=incomingid”。我在上面编写了代码片段,但在下面出现错误......该查询有什么问题?请你帮助我好吗 ?
E/Error(996): Error while openining peopleandroid.database.sqlite.SQLiteException: near "FROM": syntax error: , while compiling: SELECT id,lastname,status FROM people WHERE id = 1 FROM places WHERE status =100 );