How to fetch only one column in sugar orm
See original GitHub issueHello, i create a model class person, how can i fetch only the lastName of all users
public Person extends SugarRecord<Person>{ private String lastname; private String firstname; private String middleName; private String faculty; private int age;
public Person(String last, String first, String middleName, int age, String faculty){
this.lastname = last;
this.firstname = first;
this.age = age;
this.middleName = middleName;
this.faculty = faculty;
}
public Person(){
}
Issue Analytics
- State:
- Created 9 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
How to retrieve a single column data from a Android sugar ...
Another example that returns a List of values in the column. Use as such: String rawQuery = ("SELECT feed_key FROM team_feed_key WHERE ...
Read more >Clean Persistence with Sugar ORM - CodePath Cliffnotes
Select youngAuthorQuery = Select.from(Author.class) .where(Condition ...
Read more >Sugar ORM - Insanely easy way to work with Android database.
Select.from(TestRecord.class) .where(Condition ...
Read more >Android SQLite Database Tutorial with Sugar ORM
First fetch the Note from the database. I'm finding it based on the title, but ideally you'd do it using an ID of...
Read more >A Comparison of Android ORMs | Vertabelo Database Modeler
ActiveAndroid is the only ORM lacking a genuine builder for select queries. This time around, Sugar ORM has a reasonable and quite concise ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Any update on this?
Check my answer on https://stackoverflow.com/a/54099882/10268067