开发者

How to return unique rows within a column in Android SQLite?

开发者 https://www.devze.com 2023-02-18 18:02 出处:网络
Really开发者_如何学运维 all I want to do is say the query SELECT DISTINCT column FROM table but I can\'t figure out how to structure it in the enourmous query methods that are part of SQLiteDatabase

Really开发者_如何学运维 all I want to do is say the query SELECT DISTINCT column FROM table but I can't figure out how to structure it in the enourmous query methods that are part of SQLiteDatabase

I'm just trying to get the names of all contacts in a table.


You seem to know the sql query you want to run. Have you tried using rawQuery()?


You will probably find this version of the SQLiteDatabase#query method most useful.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号