2010-03-04 17 views

回答

3
select column, count(*) from table group by column 
2

您使用分組:

select TheValue, count(*) 
from TheTable 
group by TheValue 
order by TheValue