how to add WHERE clause to Query on android

Posted by Brian on Stack Overflow See other posts from Stack Overflow or by Brian
Published on 2010-07-17T13:53:06Z Indexed on 2012/03/18 18:03 UTC
Read the original article Hit count: 258

Filed under:
|
|
|

I would like to limit the results to those whose KEY_HOMEID is equal to journalId. I've been on this for a couple days any help would be appreciated.

public Cursor fetchAllNotes(String journalId) { return mDb.query(DATABASE_TABLE, new String[] {KEY_ROWID, KEY_HEIGHT, KEY_BODY, KEY_HOMEID},"FROM DATABASE_TABLE WHERE KEY_HOMEID = journalId",null, null, null, null,null); }

© Stack Overflow or respective owner

Related posts about android

Related posts about query