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
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
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。