1、distinctselect count(distinct CName) from Course select count(CName) from (select distinct CName from Course) as temp2、group byselect count(1) from Course group by CName