SQL--order by 后可以加聚合函数

eg:

select  Sno,count(Cno)
from Student
group by Sno
order by count(Cno)

猜你喜欢

转载自blog.csdn.net/Mimo_YY/article/details/118905253