22智能在线
新记
SQL语句:用count求group by分组的个数
如题所述
举报该文章
其他看法
第1个回答 2019-08-29
select
count(*)
num,sid
into
#a
from
person
group
by
sid
select
count(*)
from
#a
或者
select
count(*)
from
(select
count(*)
num,sid
from
person
group
by
sid
)
相似回答
大家正在搜