如何在column1中获取数据并在textview上显示它,例如
this is my column1
bacon
hotdog
fries
bacon
bacon
hotdog
我希望在我的textview上显示它或类似的东西
bacon (3)
hotdog (2)
fries
答案 0 :(得分:2)
1.选择您的数据:
SELECT column1, count(column1)
FROM mytable
GROUP BY column1
ORDER BY count(column1) DESC;