当前位置:Gxlcms > 数据库问题 > mysql分组查询和排序

mysql分组查询和排序

时间:2021-07-01 10:21:17 帮助过:40人阅读

user_name from t_user group by user_name order by id
select sex,avg(math) ,count(id) ID from student group by sex having ID>2;  --ID是别名

 

mysql分组查询和排序

标签:span   nbsp   group by   where   class   函数   math   group   user   

人气教程排行