Hi,
i'm new member, i've the problem with query sqlite.
I've this record load into spinner:
player 1
player 2
player 3
player 1
player 4
etc
i would not to see double name but i'd see only different names for example:
player 1
player 2
player 3
player 4
so I thought of using the group by sql but not working. here is my code
sqldb.ExecQuery("SELECT id,name FROM player GROUP BY name")
where am I wrong? can you give me some help?
i'm new member, i've the problem with query sqlite.
I've this record load into spinner:
player 1
player 2
player 3
player 1
player 4
etc
i would not to see double name but i'd see only different names for example:
player 1
player 2
player 3
player 4
so I thought of using the group by sql but not working. here is my code
sqldb.ExecQuery("SELECT id,name FROM player GROUP BY name")
where am I wrong? can you give me some help?