vendredi 29 janvier 2016

how to get a column from sqlite

i want to get a particular column from my table in a cursor like this:

table:

ID          NAME        AGE         ADDRESS     SALARY
----------  ----------  ----------  ----------  ----------
1           Paul        32          California  20000.0
2           Allen       25          Texas       15000.0
3           Teddy       23          Norway      20000.0
4           Mark        25          Rich-Mond   65000.0
5           David       27          Texas       85000.0
6           Kim         22          South-Hall  45000.0
7           James       24          Houston     10000.0

result:

20000.0
15000.0
20000.0
65000.0
85000.0
45000.0
10000.0

how to do this in my sqlhelper class?

Aucun commentaire:

Enregistrer un commentaire