SQL对不重复项进行计数select WorkSubstance,count(Distinct Class)as Cla