排序查询 select DISTINCT * from stu order by age asc,math desc;(在stu表中按照年龄升序排列(默认为升序排列),如果年龄一样,按照数学成绩降序排列) 分组查询 select DISTINCT 聚合函数名(列名) from stu 聚合函数 count(统计数量) max (最大值) min(最小值) sum(求和) avg(平均值)