1、distinct
select count(distinct CName) from Course select count(CName) from (select distinct CName from Course) as temp
2、group by
select count(1) from Course group by CName
==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==
1、distinct
select count(distinct CName) from Course select count(CName) from (select distinct CName from Course) as temp
2、group by
select count(1) from Course group by CName
==>如有问题,请联系我:easonjim#163.com,或者下方发表评论。<==