android - How to get only one column as the result of a query with ActiveAndroid? -
how can array column "name" of category
model?
i can categories using
list<category> categorylist = new select() .from(category.class) .execute();
and create array name of category
, guess there way directly , cannot find how.
a little late in answering this, issue because sqliteutils.rawquery() makes assumption id column going in cursor result. set columns string[] {id, your_column} , you'll fine.
list<category> categorylist = new select(new string[]{"id,your_column"}).from(category.class).execute();
Comments
Post a Comment