表abc
-假设有三列:id
,title
和status
select distinct status from abc;
结果:
home
archive
wait
aauth
impress
select count(distinct status) from abc;
结果:5
我需要的是对每个不同状态内的项目进行计数:
home 10
archive 14
wait 17
aauth 19
impress 27
有帮助吗?