Android rawQuery help
Posted
by dweebsonduty
on Stack Overflow
See other posts from Stack Overflow
or by dweebsonduty
Published on 2010-06-02T03:19:02Z
Indexed on
2010/06/02
3:23 UTC
Read the original article
Hit count: 861
I was wondering how I could query my database of 1400 items and get only the DISTINCT types and row ids. Below is the actual sql that I want to run by my program crashes if I dont return ids.
return mDb.rawQuery("SELECT DISTINCT Type from the_foods",null);
Any ideas?
© Stack Overflow or respective owner