select field,count(field) as ct from (select field from field) as tb group by field order by field;不知对否,自行测试