 <p>The answer of you question...<code>You can't.</code></p> <blockquote> <p>Some other help:</p> </blockquote> <p>You can select all IDs once by </p> <pre><code> public String getId() { String ids = ""; String[] culumns = new String[] {ID,..}; Cursor c = ourDatabase.query(LOCATER_TABLE, culumns, null, null, null,null, null); int id = c.getColumnIndex(ID); for (c.moveToFirst(); !c.isAfterLast(); c.moveToNext()) { ids = ids + "\n"+c.getColumnIndex(LOCATER_ID); } return ids; } </code></pre> <p>Or a particular Id through some same row item/reference..like <code>select id where name = ..</code> or something like this.</p>