select count(distinct item) from table 查询不同字段的数目,注意count和括号之间不能有空格select distinct item from table 查询不同字段的值