lundi 23 novembre 2015

Activeandroid how to select column, Like select name from student

i have Select().from(student.class).execute();

changing it to Select("name").from(student.class).execute(); is not working and giving error

and also if if get a List of rows from select query how to read column by column from that list

 public static List student() {

    return new Select().from(student.class).execute();
}

How can i iterate in the returned list by column wise : say id,name,roll etc

Aucun commentaire:

Enregistrer un commentaire